example: fix compilation for Clang 13

This commit is contained in:
Johel Ernesto Guerrero Peña
2021-02-21 17:52:35 -04:00
committed by Mateusz Pusz
parent f228ddfd77
commit dca553ed96

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();
}
}