[C++-sig] Py++ exposing default constructors twice?

Hans Meine meine at informatik.uni-hamburg.de
Sun Jun 8 22:28:04 CEST 2008


Hi,

py++ generates code like this:

    bp::class_< Foo >( "Foo" )
        .def( bp::init< >() )
    ...

AFAIK, the first like already exposes the default constructor (since no_init 
was not given), thus I would expect the second line to be superfluous?!

Ciao, /  /                                                    .o.
     /--/                                                     ..o
    /  / ANS                                                  ooo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20080608/1da31da4/attachment.pgp>


More information about the Cplusplus-sig mailing list