[C++-sig] Boost newbie help

brett hartshorn bhartsho at yahoo.com
Mon Mar 22 08:48:45 CET 2004


I'm having a problem wrapping a class that looks like this:

class A {
    A _myVar;
    A (const A &);   //don't ask why this is not defined

  public:
    A() { _myVar = myFunction(); }

}

It will generate errors when building that say:
error: `A::A(const A&)' is private
/usr/include/boost/python/object/value_holder.hpp:111: error: within this context

If i remove the strange constructor that does nothing, then it builds without any problems.
Anybody have any ideas how to fix this, other than removing that constructor?

thanks for the help,
-brett

__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html




More information about the Cplusplus-sig mailing list