diff --git a/Constrained_triangulation_3/include/CGAL/Constrained_triangulation_3/internal/config.h b/Constrained_triangulation_3/include/CGAL/Constrained_triangulation_3/internal/config.h index 113f32ba21d..29c37419336 100644 --- a/Constrained_triangulation_3/include/CGAL/Constrained_triangulation_3/internal/config.h +++ b/Constrained_triangulation_3/include/CGAL/Constrained_triangulation_3/internal/config.h @@ -31,9 +31,9 @@ constexpr bool cdt_3_can_use_cxx20_format() { return true; } -template -decltype(auto) cdt_3_format(Format&& fmt, Args&&... args) { - return std::format(std::forward(fmt), std::forward(args)...); +template +decltype(auto) cdt_3_format(std::string_view fmt, const Args&... args) { + return std::vformat(fmt, std::make_format_args(args...)); } #else // not CGAL_CDT_3_CAN_USE_CXX20_FORMAT