Skip to content

Commit b082519

Browse files
authored
Patch
1 parent 6175aa0 commit b082519

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/include/opentelemetry/nostd/type_traits.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ using std::is_trivially_move_constructible;
142142
template <typename T>
143143
struct 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 && __is_trivially_assignable(T&, const T&);
146146
};
147147

148148
template <typename T>
@@ -154,7 +154,7 @@ struct is_trivially_move_constructible
154154
template <typename T>
155155
struct is_trivially_copy_assignable
156156
{
157-
static constexpr bool value = std::is_copy_assignable<T>::value && __has_trivial_assign(T);
157+
static constexpr bool value = std::is_copy_assignable<T>::value && && __is_trivially_assignable(T&, const T&);
158158
};
159159

160160
template <typename T>

0 commit comments

Comments
 (0)