mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-03 20:34:26 +02:00
example: fix compilation for Clang 13
This commit is contained in:
committed by
Mateusz Pusz
parent
f228ddfd77
commit
dca553ed96
@@ -36,7 +36,7 @@ void to_stream(std::basic_ostream<CharT, Traits>& os, const quantity<D, U, Rep>&
|
|||||||
{
|
{
|
||||||
os << q.count();
|
os << q.count();
|
||||||
constexpr auto symbol = detail::unit_text<D, U>();
|
constexpr auto symbol = detail::unit_text<D, U>();
|
||||||
if constexpr (symbol.standard().size()) {
|
if constexpr (bool(symbol.standard().size())) {
|
||||||
os << " " << symbol.standard();
|
os << " " << symbol.standard();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user