[C++-sig] Re: wrapping boost::optional
by David Abrahams other posts by this author
Jul 30 2004 5:53AM messages near this date
[C++-sig] Boost.python + PyQt?
|
[C++-sig] Re: Interface slices between python and c++
"Mike Rovner" <mike@[...].com> writes:
> David Abrahams wrote:
> > "Neal D. Becker" <ndbecker2@[...].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
_______________________________________________
C++-sig mailing list
C++-sig@[...].org
http://mail.python.org/mailman/listinfo/c++-sig
|