From 4a5259d1faa5e0e37ff654e7efe5ec40de72bdc7 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Sat, 1 Jun 2019 22:27:06 +0200 Subject: [PATCH] work around another swig4 change * python/spot/impl.i: Make sure spot::acc_cond::mark_t::operator<< exceptions are not ignored. --- python/spot/impl.i | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/spot/impl.i b/python/spot/impl.i index c8b86a160..e3936660c 100644 --- a/python/spot/impl.i +++ b/python/spot/impl.i @@ -491,6 +491,10 @@ namespace std { %include %include %include + /* These operators may raise exceptions, and we do not + want Swig4 to convert those exceptions to NotImplemented. */ +%nopythonmaybecall spot::acc_cond::mark_t::operator<<; +%nopythonmaybecall spot::acc_cond::mark_t::operator>>; %implicitconv spot::acc_cond::mark_t; %implicitconv spot::acc_cond::acc_code; %feature("flatnested") spot::acc_cond::mark_t;