[C++-sig] Re: The "return always existing pointer throws dangling error" problem
dave at boost-consulting.com
Wed Oct 22 21:12:40 CEST 2003
"Niall Douglas" <s_sourceforge at nedprod.com> writes:
> 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.
More information about the Cplusplus-sig