MSVC 2019 does not have std::basic_format_string

See https://github.com/microsoft/STL/pull/3074 implemented later in Sept 2022.
This commit is contained in:
Laurent Rineau 2025-05-02 10:57:23 +02:00
parent d47c44f7f3
commit d6ae7c9686
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;
}
template <typename... Args>
decltype(auto) cdt_3_format(std::format_string<Args...> fmt, Args&&... args) {
return std::format(fmt, std::forward<Args>(args)...);
template <typename Format, typename... Args>
decltype(auto) cdt_3_format(Format&& fmt, Args&&... args) {
return std::format(std::forward<Format>(fmt), std::forward<Args>(args)...);
}
#else // not CGAL_CDT_3_CAN_USE_CXX20_FORMAT