diff --git a/python/spot/impl.i b/python/spot/impl.i index 680e90149..778983aac 100644 --- a/python/spot/impl.i +++ b/python/spot/impl.i @@ -529,7 +529,13 @@ namespace std { %template(vectorstring) vector; %template(vectorint) vector; %template(pair_formula_vectorstring) pair>; - %template(atomic_prop_set) set; + // We specify the optional std::less/std::allocator arguments of set + // to work around an issue that appeared with Swig 4.2. Without those + // arguments the type of set used in module ltlsmin.i + // does not match the type of set used here! + %template(atomic_prop_set) set, + std::allocator>; %template(vectorofvectorofformulas) vector>; %template(setunsigned) set; %template(relabeling_map) map; @@ -813,7 +819,9 @@ def state_is_accepting(self, src) -> "bool": %include %include -%extend std::set { +%extend std::set, + std::allocator> { std::string __str__() { std::ostringstream os;