another fix, so that it works as well on Linux

This commit is contained in:
Laurent Rineau 2025-05-02 14:23:31 +02:00
parent d6ae7c9686
commit e31144344f
1 changed files with 3 additions and 3 deletions

View File

@ -31,9 +31,9 @@ constexpr bool cdt_3_can_use_cxx20_format() {
return true; return true;
} }
template <typename Format, typename... Args> template <typename... Args>
decltype(auto) cdt_3_format(Format&& fmt, Args&&... args) { decltype(auto) cdt_3_format(std::string_view fmt, const Args&... args) {
return std::format(std::forward<Format>(fmt), std::forward<Args>(args)...); return std::vformat(fmt, std::make_format_args(args...));
} }
#else // not CGAL_CDT_3_CAN_USE_CXX20_FORMAT #else // not CGAL_CDT_3_CAN_USE_CXX20_FORMAT