mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-31 03:47:16 +02:00
Clean up tag dispatch for group_type copy assignment
This commit is contained in:
@ -174,9 +174,7 @@ struct atomic_integral
|
|||||||
void operator&=(Integral m){n.fetch_and(m,std::memory_order_relaxed);}
|
void operator&=(Integral m){n.fetch_and(m,std::memory_order_relaxed);}
|
||||||
|
|
||||||
atomic_integral& operator=(atomic_integral const& rhs) {
|
atomic_integral& operator=(atomic_integral const& rhs) {
|
||||||
if(this!=&rhs){
|
|
||||||
n.store(rhs.n.load(std::memory_order_relaxed),std::memory_order_relaxed);
|
n.store(rhs.n.load(std::memory_order_relaxed),std::memory_order_relaxed);
|
||||||
}
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1833,12 +1833,7 @@ private:
|
|||||||
|
|
||||||
void copy_groups_array_from(const table_core& x) {
|
void copy_groups_array_from(const table_core& x) {
|
||||||
copy_groups_array_from(x, std::integral_constant<bool,
|
copy_groups_array_from(x, std::integral_constant<bool,
|
||||||
#if BOOST_WORKAROUND(BOOST_LIBSTDCXX_VERSION,<50000)
|
std::is_trivially_copy_assignable<group_type>::value
|
||||||
/* std::is_trivially_copyable not provided */
|
|
||||||
boost::has_trivial_copy<element_type>::value
|
|
||||||
#else
|
|
||||||
std::is_trivially_copyable<element_type>::value
|
|
||||||
#endif
|
|
||||||
>{}
|
>{}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user