File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
api/include/opentelemetry/nostd Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,8 @@ using std::is_trivially_move_constructible;
142142template <typename T>
143143struct is_trivially_copy_constructible
144144{
145- static constexpr bool value = std::is_copy_constructible<T>::value && __has_trivial_copy(T);
145+ static constexpr bool value = std::is_copy_constructible<T>::value
146+ && __is_trivially_assignable(T&, const T&);
146147};
147148
148149template <typename T>
@@ -154,7 +155,8 @@ struct is_trivially_move_constructible
154155template <typename T>
155156struct is_trivially_copy_assignable
156157{
157- static constexpr bool value = std::is_copy_assignable<T>::value && __has_trivial_assign(T);
158+ static constexpr bool value = std::is_copy_assignable<T>::value
159+ && __is_trivially_assignable(T&, const T&);
158160};
159161
160162template <typename T>
You can’t perform that action at this time.
0 commit comments