forked from mpusz/mp-units
removed c_str(), size(), operator<< abstractions from basic_symbol_text
This commit is contained in:
committed by
Mateusz Pusz
parent
e9272ac108
commit
f6d9a1cbda
@@ -168,8 +168,8 @@ std::basic_string<CharT> to_string(const Q& q)
|
||||
std::basic_ostringstream<CharT, Traits> s;
|
||||
s << q.count();
|
||||
constexpr auto symbol = unit_text<typename Q::dimension, typename Q::unit>();
|
||||
if constexpr (symbol.size()) {
|
||||
s << " " << symbol;
|
||||
if constexpr (symbol.standard().size()) {
|
||||
s << " " << symbol.standard();
|
||||
}
|
||||
return s.str();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user