Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions api/include/opentelemetry/nostd/type_traits.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ using std::is_trivially_move_constructible;
template <typename T>
struct is_trivially_copy_constructible
{
static constexpr bool value = std::is_copy_constructible<T>::value && __has_trivial_copy(T);
static constexpr bool value = std::is_copy_constructible<T>::value
&& __is_trivially_assignable(T&, const T&);
};

template <typename T>
Expand All @@ -154,7 +155,8 @@ struct is_trivially_move_constructible
template <typename T>
struct is_trivially_copy_assignable
{
static constexpr bool value = std::is_copy_assignable<T>::value && __has_trivial_assign(T);
static constexpr bool value = std::is_copy_assignable<T>::value
&& __is_trivially_assignable(T&, const T&);
};

template <typename T>
Expand Down
Loading