Преглед изворни кода

hashed_string: make const char * conversion explicit

skypjack пре 11 месеци
родитељ
комит
49b5b5b2b1
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/entt/core/hashed_string.hpp

+ 1 - 1
src/entt/core/hashed_string.hpp

@@ -177,7 +177,7 @@ public:
     }
 
     /*! @copydoc data */
-    [[nodiscard]] constexpr operator const value_type *() const noexcept {
+    [[nodiscard]] explicit constexpr operator const value_type *() const noexcept {
         return data();
     }