From: SourceForge.net <no...@so...> - 2012-03-23 18:57:39
|
Bugs item #3510629, was opened at 2012-03-23 11:57 Message generated for change (Tracker Item Submitted) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3510629&group_id=1645 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: python Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: Nobody/Anonymous (nobody) Summary: vectors of shared pointers to const objects lose python type Initial Comment: When return a vector of shared pointers to const objects in python, they are returned as SwigPyObject instances instead of the appropriate type. Single shared pointers to const objects are returned correctly and so are vectors of shared pointers to non const objects. The following is an example of the issue: C++ std::vector<boost::shared_ptr<const ClassA> > someMethod(); SWIG Interface %template (ExampleType) std::vector< boost::shared_ptr < const ClassA > > ; ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3510629&group_id=1645 |