Always assert in FMT_THROW (#3439)

This commit is contained in:
Barry Revzin 2023-05-17 07:04:36 -06:00 committed by GitHub
parent e0fc0e85e3
commit 9a034b0d55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,10 +114,8 @@ FMT_END_NAMESPACE
# define FMT_THROW(x) throw x
# endif
# else
# define FMT_THROW(x) \
do { \
FMT_ASSERT(false, (x).what()); \
} while (false)
# define FMT_THROW(x) \
::fmt::detail::assert_fail(__FILE__, __LINE__, (x).what())
# endif
#endif