
15 Feb
2005
15 Feb
'05
12:12 p.m.
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