diff options
author | nadya73 <nadya73@yandex-team.com> | 2023-05-25 15:21:33 +0300 |
---|---|---|
committer | nadya73 <nadya73@yandex-team.com> | 2023-05-25 15:21:33 +0300 |
commit | b6e5ec8493b3bdae3ab35746270b828b5dcf9aa2 (patch) | |
tree | 317cebd62bd56d60b46963d82270b7281a4ce100 | |
parent | 36161a0673e3c898b48819ba206fa38409b896f5 (diff) | |
download | ydb-b6e5ec8493b3bdae3ab35746270b828b5dcf9aa2.tar.gz |
YT-19191: Support system stl for yt/cpp/mapreduce client
Support default stl for yt/cpp/mapreduce client
-rw-r--r-- | library/cpp/yt/memory/ref-inl.h | 4 | ||||
-rw-r--r-- | library/cpp/yt/memory/shared_range.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/yt/memory/ref-inl.h b/library/cpp/yt/memory/ref-inl.h index a57bb83a8d..0508bfbb47 100644 --- a/library/cpp/yt/memory/ref-inl.h +++ b/library/cpp/yt/memory/ref-inl.h @@ -43,7 +43,7 @@ Y_FORCE_INLINE TRef TRef::FromStringBuf(TStringBuf strBuf) template <class T> Y_FORCE_INLINE TRef TRef::FromPod(const T& data) { - static_assert(TTypeTraits<T>::IsPod || std::is_pod<T>::value, "T must be a pod-type."); + static_assert(TTypeTraits<T>::IsPod || (std::is_standard_layout_v<T> && std::is_trivial_v<T>), "T must be a pod-type."); return TRef(&data, sizeof (data)); } @@ -81,7 +81,7 @@ Y_FORCE_INLINE TMutableRef::operator TRef() const template <class T> Y_FORCE_INLINE TMutableRef TMutableRef::FromPod(T& data) { - static_assert(TTypeTraits<T>::IsPod || std::is_pod<T>::value, "T must be a pod-type."); + static_assert(TTypeTraits<T>::IsPod || (std::is_standard_layout_v<T> && std::is_trivial_v<T>), "T must be a pod-type."); return TMutableRef(&data, sizeof (data)); } diff --git a/library/cpp/yt/memory/shared_range.h b/library/cpp/yt/memory/shared_range.h index 967a7cca26..af6856d633 100644 --- a/library/cpp/yt/memory/shared_range.h +++ b/library/cpp/yt/memory/shared_range.h @@ -55,7 +55,7 @@ public: { } //! Constructs an empty TSharedRange from a nullptr expression. - TSharedRange(nullptr_t) + TSharedRange(std::nullptr_t) : TRange<T>(nullptr, 0UL) , Holder_(nullptr) { } |