[C++-sig] Re: [boost] Re: Error if member function not called?
David Abrahams
dave at boost-consulting.com
Tue Aug 13 22:21:12 CEST 2002
From: "David B. Held" <dheld at codelogicconsulting.com>
> "David Abrahams" <dave at boost-consulting.com> wrote in message
> news:25942.9790465676$1029268776 at news.gmane.org...
> > [...]
> > Come to think of it, I'd probably opt for a special no_init parameter
to
> > the constructor:
> >
> > class_<A, not_constructible>("A", no_init).def("method",
&A::method)
>
> Is this redundant, or did you mean to say:
>
> class_<A>("A", no_init).def("method", &A::method);
Yes, that's what I meant. Thanks very much indeed!
OK, I'm not hearing any objections, so I'm going to implement this.
-Dave
-----------------------------------------------------------
David Abrahams * Boost Consulting
dave at boost-consulting.com * http://www.boost-consulting.com
More information about the Cplusplus-sig
mailing list