Re: [boost] Re: [boost.optional boost.variant] Why can't weallowreferences?

2003-08-29 Thread Joel de Guzman
David Abrahams [EMAIL PROTECTED] wrote: Joel de Guzman [EMAIL PROTECTED] writes: optionalT::reset ( T const ) ; Does it matter what happens when T is an auto_ptr? Hmmm, an optional auto_ptr. What an interesting mix. Well, I'm not sure. Fernando? -- Joel de Guzman

Re: [boost] Re: [boost.optional boost.variant] Why can't weallowreferences?

2003-08-29 Thread Joel de Guzman
David Abrahams [EMAIL PROTECTED] wrote: 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

Re: [boost] Re: [boost.optional boost.variant] Why can't weallowreferences?

2003-08-28 Thread Joel de Guzman
Fernando Cacciola [EMAIL PROTECTED] wrote: I'm way overprotective, I guess (maybe it's because I'll be father for the first time in a couple of months :-) Congratulations! The only remaining issue is the optional interface: Currenty, there is the following: optionalT::optional ( T

Re: [boost] Re: [boost.optional boost.variant] Why can't weallowreferences?

2003-08-28 Thread Joel de Guzman
Hi again, Take 2: typedef typename call_traitsT::param_type ctor_param; typedef typename call_traitstypename remove_referenceT::type::param_type assign_param; typedef typename call_traitsT::reference return_type; optional(typename call_traitsT::param_type arg);

Re: [boost] Re: [boost.optional boost.variant] Why can't weallowreferences?

2003-08-28 Thread Joel de Guzman
Joel de Guzman [EMAIL PROTECTED] wrote: Hi again, Take 2: typedef typename call_traitsT::param_type ctor_param; typedef typename call_traitstypename remove_referenceT::type::param_type assign_param; typedef typename call_traitsT::reference return_type;

Re: [boost] Re: [boost.optional boost.variant] Why can't weallowreferences?

2003-08-28 Thread Jaakko Jarvi
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 call_traitsafunc::reference t; The problem is that the