소스 검색

any: try to get around an issue with clang only

Michele Caini 5 년 전
부모
커밋
98f929e41e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/entt/core/any.hpp

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

@@ -28,7 +28,7 @@ class basic_any {
     using vtable_type = const void *(const operation, const basic_any &, const void *);
     using vtable_type = const void *(const operation, const basic_any &, const void *);
 
 
     template<typename Type>
     template<typename Type>
-    static constexpr auto in_situ = (Len != 0u) && (sizeof(Type) <= sizeof(storage_type)) && std::is_nothrow_move_constructible_v<Type>;
+    static constexpr bool in_situ = Len && sizeof(Type) <= sizeof(storage_type) && std::is_nothrow_move_constructible_v<Type>;
 
 
     template<typename Type>
     template<typename Type>
     [[nodiscard]] static bool compare(const void *lhs, const void *rhs) {
     [[nodiscard]] static bool compare(const void *lhs, const void *rhs) {