$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] Describing "traits" of a class's members
From: Chris Stankevitz (chrisstankevitz_at_[hidden])
Date: 2013-02-27 20:32:27
On Wed, Feb 27, 2013 at 4:49 PM, Chris Stankevitz
<chrisstankevitz_at_[hidden]> wrote:
> Attached is an example of how do do this. Drawback: the
> TCPositionTraits object now has a lot of typing in it. And if/when
> you create another object (e.g. TCEmployeeTraits) you are going to
> have to do a lot of typing again. There will be a lot of code
> duplication.
Attached is a version that eliminates the code duplication. Drawback:
it's now a mess of templates and specializations.
Chris