docs: TODO note changed in the unit_symbol and dimension_symbol

This commit is contained in:
Mateusz Pusz
2024-07-04 15:03:58 +01:00
parent 170a345fdf
commit 360eb85d09
2 changed files with 4 additions and 2 deletions

View File

@@ -312,7 +312,8 @@ MP_UNITS_EXPORT template<dimension_symbol_formatting fmt = dimension_symbol_form
#endif
{
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);
return text;
}();

View File

@@ -823,7 +823,8 @@ MP_UNITS_EXPORT template<unit_symbol_formatting fmt = unit_symbol_formatting{},
#endif
{
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);
return text;
}();