소스 검색

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();
     }