aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpg <pg@yandex-team.com>2023-08-11 02:06:58 +0300
committerpg <pg@yandex-team.com>2023-08-11 03:01:42 +0300
commit4c557b059d6d53b6c8c65edd22a6148d33f4dbc8 (patch)
treea04158111e6357fcaeca586388d4630a9e24daeb
parent3834214ada8f7f2c2fa58d773999d0e453b5a57b (diff)
downloadydb-4c557b059d6d53b6c8c65edd22a6148d33f4dbc8.tar.gz
-rw-r--r--library/cpp/binsaver/bin_saver.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/cpp/binsaver/bin_saver.h b/library/cpp/binsaver/bin_saver.h
index 117ee0fd78..c432d64cd8 100644
--- a/library/cpp/binsaver/bin_saver.h
+++ b/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));
}