[C++-sig] How about class_<...>.enable_copy() ?

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Fri Jun 8 20:35:30 CEST 2007

> Is there a common short idiom that does that already?  Is 
> there a rationale for not providing copying support?

Simply wrap the copy constructor with .def(init<>), e.g.:

  .def(init<your_type const&>((arg("other"))))


Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20070608/71049fd8/attachment.htm>

More information about the Cplusplus-sig mailing list