Skip to content

Commit 1c3be36

Browse files
committed
Using guards to prevent double definitions of std::vector<int> in src/gpl/src/replace-py.i
Signed-off-by: Felipe Garay <[email protected]>
1 parent 5f5a83e commit 1c3be36

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/gpl/src/replace-py.i

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,8 @@ using gpl::Replace;
2828
%include "gpl/Replace.h"
2929

3030
namespace std {
31+
#ifndef SWIG_VECTOR_INT
32+
#define SWIG_VECTOR_INT
3133
%template(IntVector) vector<int>;
34+
#endif
3235
}

0 commit comments

Comments
 (0)