Browse Source

hashed_string: make const char * conversion explicit

skypjack 10 tháng trước cách đây
mục cha
commit
49b5b5b2b1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/entt/core/hashed_string.hpp

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

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