[C++-sig] Re: Pointers to simple types, arrays and arrays of pointers to types
David Abrahams
dave at boost-consulting.com
Sun Oct 5 20:42:20 CEST 2003
Nicodemus <nicodemus at globalite.com.br> writes:
> (I couldn't create a None using Boost Python's api, I tried
> object(NULL) but it didn't work... how can one do that?)
object()
does it.
object find_wrapper(MyClass& cl) // should be a reference
{
if (float *res = cl.find())
return object(*res);
else
return object();
}
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list