mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:39:47 +00:00
Slight fix for r351820
llvm-svn: 351821
This commit is contained in:
parent
1e000b2c69
commit
2a0c5337b6
@ -124,7 +124,7 @@ struct is_trivially_move_constructible<T &&> : std::true_type {};
|
||||
template <typename T>
|
||||
struct is_copy_assignable {
|
||||
template<class F>
|
||||
static auto get(F*) -> decltype(std::declval<T &>() = std::declval<const T &>(), std::true_type{});
|
||||
static auto get(F*) -> decltype(std::declval<F &>() = std::declval<const F &>(), std::true_type{});
|
||||
static std::false_type get(...);
|
||||
static constexpr bool value = decltype(get((T*)nullptr))::value;
|
||||
};
|
||||
@ -132,7 +132,7 @@ struct is_copy_assignable {
|
||||
template <typename T>
|
||||
struct is_move_assignable {
|
||||
template<class F>
|
||||
static auto get(F*) -> decltype(std::declval<T &>() = std::declval<T &&>(), std::true_type{});
|
||||
static auto get(F*) -> decltype(std::declval<F &>() = std::declval<F &&>(), std::true_type{});
|
||||
static std::false_type get(...);
|
||||
static constexpr bool value = decltype(get((T*)nullptr))::value;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user