Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit be3450c

Browse files
Slight fix for r351820
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351821 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 9e64837 commit be3450c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/llvm/Support/type_traits.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,15 @@ struct is_trivially_move_constructible<T &&> : std::true_type {};
124124
template <typename T>
125125
struct is_copy_assignable {
126126
template<class F>
127-
static auto get(F*) -> decltype(std::declval<T &>() = std::declval<const T &>(), std::true_type{});
127+
static auto get(F*) -> decltype(std::declval<F &>() = std::declval<const F &>(), std::true_type{});
128128
static std::false_type get(...);
129129
static constexpr bool value = decltype(get((T*)nullptr))::value;
130130
};
131131

132132
template <typename T>
133133
struct is_move_assignable {
134134
template<class F>
135-
static auto get(F*) -> decltype(std::declval<T &>() = std::declval<T &&>(), std::true_type{});
135+
static auto get(F*) -> decltype(std::declval<F &>() = std::declval<F &&>(), std::true_type{});
136136
static std::false_type get(...);
137137
static constexpr bool value = decltype(get((T*)nullptr))::value;
138138
};

0 commit comments

Comments
 (0)