impr: Don't use fmt::println if it's not supported
This commit is contained in:
parent
46ee3f0faa
commit
4b0d980d54
@ -18,7 +18,10 @@ namespace hex {
|
||||
|
||||
template<typename... Args>
|
||||
inline void println(std::string_view format, Args... args) {
|
||||
fmt::println(fmt::runtime(format), args...);
|
||||
if constexpr (requires { fmt::println(fmt::runtime(format), args...); })
|
||||
fmt::println(fmt::runtime(format), args...);
|
||||
else
|
||||
fmt::print(fmt::runtime(format), args...);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user