diff --git a/src/entt/core/hashed_string.hpp b/src/entt/core/hashed_string.hpp index d47f34ad1..4c4bdd443 100644 --- a/src/entt/core/hashed_string.hpp +++ b/src/entt/core/hashed_string.hpp @@ -291,7 +291,7 @@ inline namespace literals { * @param str The literal without its suffix. * @return A properly initialized hashed string. */ -[[nodiscard]] constexpr hashed_string operator"" _hs(const char *str, std::size_t) noexcept { +[[nodiscard]] constexpr hashed_string operator""_hs(const char *str, std::size_t) noexcept { return hashed_string{str}; } @@ -300,7 +300,7 @@ inline namespace literals { * @param str The literal without its suffix. * @return A properly initialized hashed wstring. */ -[[nodiscard]] constexpr hashed_wstring operator"" _hws(const wchar_t *str, std::size_t) noexcept { +[[nodiscard]] constexpr hashed_wstring operator""_hws(const wchar_t *str, std::size_t) noexcept { return hashed_wstring{str}; }