Fix some usage of global scope operator ::
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11719 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
70e8072612
commit
da1fc3ab8f
5 changed files with 49 additions and 0 deletions
|
|
@ -74,3 +74,14 @@ struct X {
|
|||
};
|
||||
|
||||
}
|
||||
|
||||
%inline %{
|
||||
namespace SpaceMan {
|
||||
typedef double SpaceManDouble;
|
||||
}
|
||||
using namespace ::SpaceMan; // global namespace prefix
|
||||
|
||||
SpaceManDouble useSpaceMan(SpaceManDouble s) { return s; }
|
||||
|
||||
%}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue