1 Sep 2007 02:36
[ swig-Bugs-1785770 ] vector of enums isn't passed correctly
SourceForge.net <noreply <at> sourceforge.net>
2007-09-01 00:36:45 GMT
2007-09-01 00:36:45 GMT
Bugs item #1785770, was opened at 2007-08-31 15:42 Message generated for change (Comment added) made by gga73 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1785770&group_id=1645 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: ruby Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: dsomerfield (dsomerfield) Assigned to: Gonzalo Garramuno (gga73) Summary: vector of enums isn't passed correctly Initial Comment: 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(Continue reading)
RSS Feed