diff options
Diffstat (limited to 'src/sexpr')
-rw-r--r-- | src/sexpr/variant.tcc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sexpr/variant.tcc b/src/sexpr/variant.tcc index ce820bf..69bf191 100644 --- a/src/sexpr/variant.tcc +++ b/src/sexpr/variant.tcc @@ -20,6 +20,8 @@ #include <cassert> #include "bind.hpp" +#include "../diagnostics.hpp" + namespace tmwa { namespace sexpr @@ -116,9 +118,11 @@ namespace sexpr data.template construct<C, A...>(std::forward<A>(a)...); state = not_negative_one<Union<D, T...>::template index<C>()>(); } - catch(...) + catch (...) { +#if GCC_PATCH != 40702 // apparent compiler bug, not reduced static_assert(std::is_nothrow_constructible<D>::value, "first element is nothrow constructible"); +#endif data.template construct<D>(); state = 0; throw; |