pg 1 year ago
parent
commit
4c557b059d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      library/cpp/binsaver/bin_saver.h

+ 2 - 1
library/cpp/binsaver/bin_saver.h

@@ -77,8 +77,9 @@ private:
     template <class T>
     void CallObjectSerialize(T* p, NBinSaverInternals::TOverloadPriority<0>) { // lower priority - will be resolved last
 #if (!defined(_MSC_VER))
+        // broken in clang16 for some types
         // In MSVC __has_trivial_copy returns false to enums, primitive types and arrays.
-        static_assert(__has_trivial_copy(T), "Class is nontrivial copyable, you must define operator&, see");
+        // static_assert(__is_trivially_copyable(T), "Class is nontrivial copyable, you must define operator&, see");
 #endif
         DataChunk(p, sizeof(T));
     }