Glas :Re: [glas] Re: GLAS requirements |
From: David Abrahams (dave_at_[hidden])
Date: 2005-01-07 08:08:00
Karl Meerbergen wrote:
> In order to organize this properly, I suggest we define a value_traits class
> that contains the following for each value_type.
>
> template <class T>
> struct value_traits {
> typedef T value_type ;
> typedef T& reference ;
>
> /// Set t to one.
> void one( reference t ) ;
>
> /// Set t to zero.
> void zero( reference t ) ;
> };
I have no objection in principle, but please, no more degenerate traits
"blobs." Use separate free (meta)functions.
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com