[C++-sig] Re: The "return always existing pointer throws dangling error" problem

David Abrahams dave at boost-consulting.com
Wed Oct 22 21:12:40 CEST 2003

"Niall Douglas" <s_sourceforge at nedprod.com> writes:

> The:
>        object self(handle<>(borrowed(m_self)));
>        return extract<Foo*>(self.attr("f")());
> ... solution I previously mentioned is of course unsuitable because 
> attr() cannot take parameters.


Of course it takes 1 parameter, as shown in your snippet above.

Dave Abrahams
Boost Consulting

More information about the Cplusplus-sig mailing list