added ASCII-only format output support

This commit is contained in:
Ramzi Sabra
2020-03-27 10:03:59 +01:00
committed by Mateusz Pusz
parent 99c309ef19
commit e9272ac108
8 changed files with 150 additions and 12 deletions
+2 -1
View File
@@ -25,6 +25,7 @@
#include <units/bits/external/fixed_string.h>
#include <units/bits/external/text_tools.h>
#include <units/derived_dimension.h>
#include <units/symbol_text.h>
namespace units::detail {
@@ -49,7 +50,7 @@ constexpr auto operator_text()
}
}
template<typename E, basic_fixed_string Symbol, std::size_t NegativeExpCount, std::size_t Idx>
template<typename E, basic_symbol_text Symbol, std::size_t NegativeExpCount, std::size_t Idx>
constexpr auto exp_text()
{
// get calculation operator + symbol