You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This problem is described in detail here http://stackoverflow.com/questions/26390195/swig-3-wrap-untemplated-class-with-templated-constructor. In summary: I have a C++ class that is not templated but has templated constructors . I was able to make a Python wrapper in SWIG 2, but the same code fails in SWIG 3.0.2 by having the wrapper class's constructor raise AttributeError("No constructor defined")
Here is a self-contained example (from an answer to that query):
This problem is described in detail here http://stackoverflow.com/questions/26390195/swig-3-wrap-untemplated-class-with-templated-constructor. In summary: I have a C++ class that is not templated but has templated constructors . I was able to make a Python wrapper in SWIG 2, but the same code fails in SWIG 3.0.2 by having the wrapper class's constructor raise AttributeError("No constructor defined")
Here is a self-contained example (from an answer to that query):
price@price-laptop:~/test $ cat test.h
price@price-laptop:~/test $ cat test.cc
price@price-laptop:~/test $ cat test.i
price@price-laptop:~/test $ clang++ -shared -undefined dynamic_lookup -o libtest.dylib test.cc
The text was updated successfully, but these errors were encountered: