[C++-sig] Support for more than one smart_ptr?
Nicodemus
nicodemus at globalite.com.br
Fri Mar 14 01:08:14 CET 2003
Hi All!
Does Boost.Python support more than one type of smart-pointer for a
class? Suppose this code:
struct C
{
C(int x_) : x(x_) {}
int x;
};
boost::shared_ptr<C> shared_foo( int x )
{
return boost::shared_ptr<C>(new C(x));
}
std::auto_ptr<C> auto_foo( int x )
{
return std::auto_ptr<C>(new C(x));
}
How can I make both auto_foo and shared_foo work?
Regards,
Nicodemus.
More information about the Cplusplus-sig
mailing list