[boost] Re: [boost.optional && boost.variant] Why can't we allowreferences?

2003-08-29 Thread Eric Friedman
Joel, Joel de Guzman wrote: [snip] > Also, is there a reason why we can't allow: > > variant var; Nothing fundamental no, just some additional metaprogramming ;) It's supported now (see variant_reference_test). See below for a note on the semantics of the resultant variant type, though. >

[boost] Re: [boost.optional && boost.variant] Why can't we allowreferences?

2003-08-28 Thread David Abrahams
Jaakko Jarvi <[EMAIL PROTECTED]> writes: > I've noticed that call_traits doesn't support function references. > I'm not sure whether it makes sense to store function references in > optionals, though, but in any case. > > Something like this fails: > > typedef void (&afuncref)(int); > typedef cal

[boost] Re: [boost.optional && boost.variant] Why can't we allowreferences?

2003-08-28 Thread David Abrahams
"Joel de Guzman" <[EMAIL PROTECTED]> writes: > optional::reset ( T const& ) ; Does it matter what happens when T is an auto_ptr? -- Dave Abrahams Boost Consulting www.boost-consulting.com ___ Unsubscribe & other changes: http://lists.boost.org/ma