fix up namespaces so that boost, std or std::tr1 can be used for shared_ptr/intrusive_ptr
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11029 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f70f2760e3
commit
f9c640cd11
3 changed files with 81 additions and 80 deletions
|
|
@ -12,6 +12,7 @@
|
|||
%warnfilter(SWIGWARN_TYPEMAP_SWIGTYPELEAK);
|
||||
|
||||
%inline %{
|
||||
#include "boost/shared_ptr.hpp"
|
||||
#include "boost/intrusive_ptr.hpp"
|
||||
#include <boost/detail/atomic_count.hpp>
|
||||
|
||||
|
|
@ -33,6 +34,7 @@
|
|||
%include "std_string.i"
|
||||
#ifndef INTRUSIVE_PTR_WRAPPER
|
||||
# define SWIG_INTRUSIVE_PTR_NAMESPACE SwigBoost
|
||||
# define SWIG_SHARED_PTR_NAMESPACE SwigBoost
|
||||
#endif
|
||||
|
||||
#if defined(SWIGJAVA) || defined(SWIGCSHARP) || defined(SWIGPYTHON)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue