Hi,

> In this case the class indeed noncopyable.

I could not get this because, in my example program which I send earlier,
there is a function
CallResult<Simple> getCallResult()
{
        Simple si;
        return CallResult<Simple>(SUCCESS, si);
} 

Temporary object is created in return statement and hence it calls the
default copy constructor successfully.
You can verify this by compiling this.

main()
{
        CallResult<Simple> obj = getCallResult();
        std::cout << obj.status << std::endl;

}
 
There may be some problem while assignment but copy will work properly.
Correct me if there is some gap in my understanding.

Is there any way to disable this noncopyable because
mb.class_(...).noncopyable = False  doesn't worked in my case.

With Regards,
Abhishek Srivastava 
 

-- 
View this message in context: 
http://old.nabble.com/No-to_python-%28by-value%29-converter-found-for-C%2B%2B-type-tp28664090p28665970.html
Sent from the Python - c++-sig mailing list archive at Nabble.com.

_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to