mirror of https://github.com/CGAL/cgal
another fix, so that it works as well on Linux
This commit is contained in:
parent
d6ae7c9686
commit
e31144344f
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue