[C++-sig] Re: wrapping boost::optional
David Abrahams
dave at boost-consulting.com
Fri Jul 30 14:47:40 CEST 2004
"Mike Rovner" <mike at nospam.com> writes:
> David Abrahams wrote:
>> "Neal D. Becker" <ndbecker2 at verizon.net> writes:
>
>> template<typename T>
>> inline object get (boost::optional<T>& o) {
>> return o ? object() : object(o.get());
>
> return o ? object(o.get()) : object(); // !?
Uh, right.
--
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com
More information about the Cplusplus-sig
mailing list