Re: [C++-sig] Cplusplus-sig Digest, Vol 125, Issue 5

2020-05-14 Thread Carlos Duran via Cplusplus-sig
Hi, I tried that solutions but they didn't work, furthermore, I thought that polymorphisim only works on pointers. I also tried changing to reference(Component&) and adding a HeldType in the import module: class_*/, boost::noncopyable>("Component", init<>()) but all of this is futile.

Re: [C++-sig] Cplusplus-sig Digest, Vol 125, Issue 5

2020-05-14 Thread Lewis Evans
I suggest (a) renaming as test.test is confusing, eg call the file/module test_file, and the class test_class (b) I think from your previous post that test.test() simply calls the constructor for class test, and this constructor is defined in python, returning an object not a pointer, so perhaps t