From d6ae7c9686f984af0ec630f4def503bca0fe1e04 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Fri, 2 May 2025 10:57:23 +0200 Subject: [PATCH] MSVC 2019 does not have std::basic_format_string See https://github.com/microsoft/STL/pull/3074 implemented later in Sept 2022. --- .../CGAL/Constrained_triangulation_3/internal/config.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 542be8a8cd8..113f32ba21d 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(std::format_string fmt, Args&&... args) { - return std::format(fmt, std::forward(args)...); +template +decltype(auto) cdt_3_format(Format&& fmt, Args&&... args) { + return std::format(std::forward(fmt), std::forward(args)...); } #else // not CGAL_CDT_3_CAN_USE_CXX20_FORMAT