We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de632a2 commit acd3dc6Copy full SHA for acd3dc6
include/boost/decimal/detail/config.hpp
@@ -276,4 +276,12 @@ typedef unsigned __int128 uint128_t;
276
# define BOOST_DECIMAL_INLINE_VARIABLE static
277
#endif
278
279
+#if defined(__GNUC__) || defined(__clang__)
280
+# define BOOST_DECIMAL_UNREACHABLE __builtin_unreachable()
281
+#elif defined(_MSC_VER)
282
+# define BOOST_DECIMAL_UNREACHABLE __assume(0)
283
+#else
284
+# define BOOST_DECIMAL_UNREACHABLE std::abort()
285
+#endif
286
+
287
#endif // BOOST_DECIMAL_DETAIL_CONFIG_HPP
0 commit comments