forked from mpusz/mp-units
docs: TODO note changed in the unit_symbol
and dimension_symbol
This commit is contained in:
@@ -312,7 +312,8 @@ MP_UNITS_EXPORT template<dimension_symbol_formatting fmt = dimension_symbol_form
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
constexpr auto oversized_symbol_text = []() consteval {
|
constexpr auto oversized_symbol_text = []() consteval {
|
||||||
detail::inplace_vector<CharT, 128> text; // TODO can we improve here?
|
// std::basic_string<CharT> text; // TODO uncomment when https://wg21.link/P3032 is supported
|
||||||
|
detail::inplace_vector<CharT, 128> text;
|
||||||
dimension_symbol_to<CharT>(std::back_inserter(text), D{}, fmt);
|
dimension_symbol_to<CharT>(std::back_inserter(text), D{}, fmt);
|
||||||
return text;
|
return text;
|
||||||
}();
|
}();
|
||||||
|
@@ -823,7 +823,8 @@ MP_UNITS_EXPORT template<unit_symbol_formatting fmt = unit_symbol_formatting{},
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
constexpr auto oversized_symbol_text = []() consteval {
|
constexpr auto oversized_symbol_text = []() consteval {
|
||||||
detail::inplace_vector<CharT, 128> text; // TODO can we improve here?
|
// std::basic_string<CharT> text; // TODO uncomment when https://wg21.link/P3032 is supported
|
||||||
|
detail::inplace_vector<CharT, 128> text;
|
||||||
unit_symbol_to<CharT>(std::back_inserter(text), U{}, fmt);
|
unit_symbol_to<CharT>(std::back_inserter(text), U{}, fmt);
|
||||||
return text;
|
return text;
|
||||||
}();
|
}();
|
||||||
|
Reference in New Issue
Block a user