example: fix compilation for Clang 13

This commit is contained in:
Johel Ernesto Guerrero Peña
2021-03-15 14:26:46 +01:00
committed by Mateusz Pusz
parent f228ddfd77
commit dca553ed96
+1 -1
View File
@@ -36,7 +36,7 @@ void to_stream(std::basic_ostream<CharT, Traits>& os, const quantity<D, U, Rep>&
{
os << q.count();
constexpr auto symbol = detail::unit_text<D, U>();
if constexpr (symbol.standard().size()) {
if constexpr (bool(symbol.standard().size())) {
os << " " << symbol.standard();
}
}