diff --git a/include/tl/expected.hpp b/include/tl/expected.hpp index 31b130a..54676ad 100644 --- a/include/tl/expected.hpp +++ b/include/tl/expected.hpp @@ -186,13 +186,9 @@ namespace detail { template [[noreturn]] TL_EXPECTED_11_CONSTEXPR void throw_exception(E &&e) { #ifdef TL_EXPECTED_EXCEPTIONS_ENABLED - throw std::forward(e); + throw std::forward(e); #else - #ifdef _MSC_VER - __assume(0); - #else - __builtin_unreachable(); - #endif + std::terminate(); #endif }