mirror of https://github.com/CGAL/cgal
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:
parent
d47c44f7f3
commit
d6ae7c9686
|
|
@ -31,9 +31,9 @@ constexpr bool cdt_3_can_use_cxx20_format() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename... Args>
|
template <typename Format, typename... Args>
|
||||||
decltype(auto) cdt_3_format(std::format_string<Args...> fmt, Args&&... args) {
|
decltype(auto) cdt_3_format(Format&& fmt, Args&&... args) {
|
||||||
return std::format(fmt, std::forward<Args>(args)...);
|
return std::format(std::forward<Format>(fmt), std::forward<Args>(args)...);
|
||||||
}
|
}
|
||||||
|
|
||||||
#else // not CGAL_CDT_3_CAN_USE_CXX20_FORMAT
|
#else // not CGAL_CDT_3_CAN_USE_CXX20_FORMAT
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue