|
Boost : |
From: Joel de Guzman (joel_at_[hidden])
Date: 2005-02-15 07:12:05
Larry Evans wrote:
> On 02/15/2005 04:27 AM, Joel de Guzman wrote:
> [snip]
>
>> Close, but no. There will be an insert(s, k) function.
>
> What are the s and k types w.r.t. fusion::set<T1,T2,...,Tn>?
>
>>
> [snip]
>
>>
>> No. No type erasure here. The set will contain heterogenious
>> types. There will be no need for boost::any.
>>
>> Perhaps mpl::set will make it clear?
>> http://www.boost.org/libs/mpl/doc/refmanual/set.html
>>
>
> There's insert<s, x>::type described there, but both s and x
> are types, not instances of types.
Of course! That's because MPL uses metafunctions.
Fusion's counterpart will be: insert(s, k).
Cheers,
-- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk