Trying to compile a program written in c++17 and depending on gtk and glibmm and I get the following error on compilation:
/usr/include/glibmm-2.4/glibmm/variant.h:498:1: error: ISO C++17 does not allow dynamic exception specifications
498 | throw(std::bad_cast)
As a workaround, i've tried patching variant.h
with the following:
#if __cplusplus >= 201703L
#define throw(...)
#endif
But i got more and more glib define errors (related to throw).
I wonder if it is possible to do this by passing a compiler flag instead?