removed c_str(), size(), operator<< abstractions from basic_symbol_text

This commit is contained in:
Ramzi Sabra
2020-03-27 10:03:59 +01:00
committed by Mateusz Pusz
parent e9272ac108
commit f6d9a1cbda
4 changed files with 5 additions and 15 deletions
+2 -2
View File
@@ -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();
}