Skip to content

Commit

Permalink
refactor: unit_symbol changed to consteval
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Nov 30, 2023
1 parent 0e29354 commit b6b5832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/include/mp-units/unit.h
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ template<typename CharT, std::size_t N, unit_symbol_formatting fmt, Unit U>

// TODO Refactor to `unit_symbol(U, fmt)` when P1045: constexpr Function Parameters is available
template<unit_symbol_formatting fmt = unit_symbol_formatting{}, typename CharT = char, Unit U>
[[nodiscard]] constexpr auto unit_symbol(U)
[[nodiscard]] consteval auto unit_symbol(U)
{
auto get_size = []() consteval {
std::basic_string<CharT> buffer;
Expand Down

0 comments on commit b6b5832

Please sign in to comment.