diff options
Diffstat (limited to 'src/io/cxxstdio.hpp')
-rw-r--r-- | src/io/cxxstdio.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/io/cxxstdio.hpp b/src/io/cxxstdio.hpp index 66c2aa8..a8343c0 100644 --- a/src/io/cxxstdio.hpp +++ b/src/io/cxxstdio.hpp @@ -131,11 +131,13 @@ namespace cxxstdio {} ~EnumConverter() { -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wtype-limits" + DIAG_PUSH(); + DIAG_I(type_limits); if (min_value <= mid && mid <= max_value) -#pragma GCC diagnostic pop + { + DIAG_POP(); out = E(mid); + } } U *operator &() { |