[C++-sig] Py++: How to specify noncopyable

Roman Yakovenko roman.yakovenko at gmail.com
Tue Jun 26 06:15:33 CEST 2007


On 6/26/07, Anand, Kumar <kanand at qualcomm.com> wrote:
>
> I have a class in C++ which does not have the copy ctor or assignment
> operator as private. But I want to expose the class to python using Py++ and
> mark it boost::noncopyable.
>
> How do I do it in Py++?

I'll be surprised if Py++ will not do this for you. Anyway you can set
noncopyable property to True (
http://language-binding.net/pyplusplus/documentation/apidocs/pyplusplus.decl_wrappers.class_wrapper.class_t-class.html#noncopyable
)

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the Cplusplus-sig mailing list