Skip to content

Commit 42103b6

Browse files
committed
Fix Wdeprecated-literal-operator warning
1 parent 4a2d1a8 commit 42103b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/entt/core/hashed_string.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ inline namespace literals {
291291
* @param str The literal without its suffix.
292292
* @return A properly initialized hashed string.
293293
*/
294-
[[nodiscard]] constexpr hashed_string operator"" _hs(const char *str, std::size_t) noexcept {
294+
[[nodiscard]] constexpr hashed_string operator""_hs(const char *str, std::size_t) noexcept {
295295
return hashed_string{str};
296296
}
297297

@@ -300,7 +300,7 @@ inline namespace literals {
300300
* @param str The literal without its suffix.
301301
* @return A properly initialized hashed wstring.
302302
*/
303-
[[nodiscard]] constexpr hashed_wstring operator"" _hws(const wchar_t *str, std::size_t) noexcept {
303+
[[nodiscard]] constexpr hashed_wstring operator""_hws(const wchar_t *str, std::size_t) noexcept {
304304
return hashed_wstring{str};
305305
}
306306

0 commit comments

Comments
 (0)