I have defined an enum Test::NUMBER and a method with a parameter of type vector<Test::NUMBER>. I have added an include in the swig file for "std_vector.i" and added a %template directive that should handle the vector.
Instead, I get a segfault coming from _wrap_Test_test_enum_vector in the wrapper file. It seems to fail when calling push_back() on the instance of std::vector<Test::NUMBER > (line 3045).
The method is called fine if the parameter is std::vector<int> or just Test::Number.
Incidentally, the included code is a stripped-down a larger project wherein I originally saw the bug. However, since I was calling the method in a different context, the segfault was not occuring, rather the ENUM values were changed. I have not been able to do a simple repro of this.
If you would like to see the code from the bigger project, I can provide that too, since it is an open-source project.
Windows XP SP 2.
Microsoft Visual C++ 2005.
Note that if you want to use the VC++ project, paths must be changed in the "Debugging" and "Build Swig" properties and