diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-03 06:45:08 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-03 06:45:08 +0100 |
| commit | 5238be84798217e2e1bc070193fcf953f736c45e (patch) | |
| tree | 9aee3af05d92a1dc6e4ab380ee17ac864ffc44c5 | |
| parent | fca55377482c9aadcf5a7a3f9b1edcd8c369106e (diff) | |
workaround fmtlib bug on gcc 14
| -rw-r--r-- | compat/exception.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/compat/exception.hpp b/compat/exception.hpp index 86a8db21..dcc5ee5f 100644 --- a/compat/exception.hpp +++ b/compat/exception.hpp @@ -36,8 +36,11 @@ exception::exception(const Fmt& fmt, Ts&&... args) noexcept if (std::is_constant_evaluated()) \ throw ::floormat::base_exception{}; \ else \ - throw ::floormat::exception{"assertion failed: {} in {}:{}"_cf, \ - #__VA_ARGS__, __FILE__, __LINE__}; \ + throw ::floormat::exception{ \ + "assertion failed: {} in {}:{}"_cf, \ + #__VA_ARGS__, \ + __FILE__, (floormat::size_t)__LINE__ \ + }; \ } \ } while (false) |
