Boost logo

Glas :

Re: [glas] Re: GLAS requirements

From: Karl Meerbergen (Karl.Meerbergen_at_[hidden])
Date: 2005-01-07 08:25:59


Hi David,

No problem. Free functions are fine for me. Whether these are
implemented as traits is an issue for later.

Can you explain how traits can be avoided using meta functions?

Thanks,

Karl

David Abrahams wrote:

>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.
>
>
>