From 5238be84798217e2e1bc070193fcf953f736c45e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 3 Nov 2023 06:45:08 +0100 Subject: workaround fmtlib bug on gcc 14 --- compat/exception.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'compat') 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) -- cgit v1.2.3