Menu

#27 shared_ptr<const foo> not supported by Py++

open
nobody
None
5
2011-05-18
2011-05-18
No

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);}
};
----

Discussion


Log in to post a comment.