#966 std::tr1::shared_ptr does not work properly

closed-accepted
nobody
5
2008-11-23
2008-11-21
Johan Hake
No

In the macro SWIG_SHARED_PTR_DERIVED in the file shared_ptr.i there is a bug that appear when trying to wrapp c++ code that uses std::tr1::shared_ptr. Setting:

#define SWIG_SHARED_PTR_NAMESPACE std
#define SWIG_SHARED_PTR_SUBNAMESPACE tr1

will not produce the right code from the macro. The macro refer to SWIG_SHARED_PTR_NAMESPACE instead of SWIG_SHARED_PTR_QNAMESPACE.

A patch that resolves the bug is provided.

Johan

Discussion

  • Johan Hake

    Johan Hake - 2008-11-21

    A pathc against svn revision 10934, resolving the reported bug

     
  • William Fulton

    William Fulton - 2008-11-23

    Thanks, fixed in svn for 1.3.37.

     
  • William Fulton

    William Fulton - 2008-11-23
    • status: open --> closed-accepted
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks