Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert_swig's -s option produces uncompilable code for STLs instantiated in namespaces #769

Open
dbankieris opened this issue May 10, 2019 · 0 comments

Comments

@dbankieris
Copy link
Contributor

dbankieris commented May 10, 2019

With TRICK_CONVERT_SWIG_FLAGS set to -s:

#include <vector>

namespace a { 

class A { 
    std::vector<int> v;
};

}

SWIG 2:

error: ‘std’ in namespace ‘a’ does not name a type
 SWIGINTERN a::std::vector< int >::size_type std_vector_Sl_int_Sg____len__(std::vector< int > const *self){
            ^

SWIG 4:

Error: 'std::vector' resolves to 'std::vector' and was incorrectly instantiated in scope 'a' instead of within scope 'std'.

This is due to #768

dbankieris added a commit that referenced this issue May 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant