shared_ptr<const foo> not supported by Py++
Brought to you by:
mbaas,
roman_yakovenko
Since recent versions of Boost.Python support shared_ptr<const foo> (at least 1.46.1 does) it would be nice to automagically expose such shared_ptrs in the same way as shared_ptr<foo> exposed at the moment. Here is a sample:
----
class foo2;
typedef boost::shared_ptr<const foo2> foo2_ptr_t;
class foo2
{
public:
virtual ~foo2() {}
foo2_ptr_t parent() const{return foo2_ptr_t(new foo2);}
};
----