[Eric Friedman]
> Why not overload boost::get again for optional?

It might be a good idea for other reasons, but it doesn't solve the problem
I'm trying to solve.

[Brian McNamara]
>    do_something( adapt( 3               ) );
>    do_something( adapt( nilable<int>(3) ) );
>    do_something( adapt( foo             ) );  // foo has unknown type

But I'd like to write
    do_something(3);
    do_something(foo);  // of type T
    do_something(bar);  // of type nilable<T>

Can I have my cake and eat it too? ;-)

Dave

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to