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
@@ -456,9 +456,9 @@ public:
// default format should print value followed by the unit separated with 1 space
to_quantity_buffer = units::detail::format_units_quantity_value<CharT>(to_quantity_buffer, q.count(), rep_specs);
constexpr auto symbol = units::detail::unit_text<Dimension, Unit>();
if(symbol.size()) {
if(symbol.standard().size()) {
*to_quantity_buffer++ = CharT(' ');
format_to(to_quantity_buffer, "{}", symbol.c_str());
format_to(to_quantity_buffer, "{}", symbol.standard().c_str());
}
}
else {