[C++-sig] Wrapping a class with a private copy ctor

English, Mark Mark.English at rbccm.com
Tue Sep 25 17:38:06 CEST 2007


> From: c++-sig-bounces at python.org [mailto:c++-sig-bounces at python.org]On
> Behalf Of Matthew Scouten
> Sent: 25 September 2007 16:33
> Subject: [C++-sig] Wrapping a class with a private copy ctor
> 
> <snip>
> But Boost::python seems to choke on the private copy ctor.
> Is there a way around this?
> <snip>
> BOOST_PYTHON_MODULE(core)
> {
> 	class_<CTTPriceConsumer_wrapper>("CTTPriceConsumer");
> }
This doesn't reference the classes you mention earlier in your example.

Try noncopyable:

BOOST_PYTHON_MODULE(core)
{
	class_<CTTPriceConsumer_wrapper
            ,boost::noncopyable>
      ("CTTPriceConsumer")
      ;
}

Cheers,
mE
______________________________________________________________________

This email is intended only for the use of the individual(s) to whom it is addressed and may be privileged and confidential.
Unauthorised use or disclosure is prohibited.If you receive This e-mail in error, please advise immediately and delete the original message.
This message may have been altered without your or our knowledge and the sender does not accept any liability for any errors or omissions in the message.



More information about the Cplusplus-sig mailing list