diff --git a/include/flow/step.hpp b/include/flow/step.hpp index b616ead1..e365f516 100644 --- a/include/flow/step.hpp +++ b/include/flow/step.hpp @@ -58,19 +58,16 @@ template [[nodiscard]] constexpr auto milestone() { } inline namespace literals { -template [[nodiscard]] constexpr auto operator""_action() { - constexpr auto S = stdx::ct_string{{Cs..., 0}}; +template [[nodiscard]] constexpr auto operator""_action() { return action(); } -template [[nodiscard]] constexpr auto operator""_step() { - constexpr auto S = stdx::ct_string{{Cs..., 0}}; +template [[nodiscard]] constexpr auto operator""_step() { return action(); } -template +template [[nodiscard]] constexpr auto operator""_milestone() { - constexpr auto S = stdx::ct_string{{Cs..., 0}}; return milestone(); } } // namespace literals diff --git a/include/msg/message.hpp b/include/msg/message.hpp index fe670ad0..35f36849 100644 --- a/include/msg/message.hpp +++ b/include/msg/message.hpp @@ -171,11 +171,13 @@ template struct field_name { } // namespace detail inline namespace literals { -template constexpr auto operator""_field() { - return detail::field_name>{}; +template constexpr auto operator""_field() { + using Name = decltype(stdx::ct_string_to_type()); + return detail::field_name{}; } -template constexpr auto operator""_f() { - return detail::field_name>{}; +template constexpr auto operator""_f() { + using Name = decltype(stdx::ct_string_to_type()); + return detail::field_name{}; } } // namespace literals