mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-29 19:07:15 +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);}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -1833,12 +1833,7 @@ private:
|
||||
|
||||
void copy_groups_array_from(const table_core& x) {
|
||||
copy_groups_array_from(x, std::integral_constant<bool,
|
||||
#if BOOST_WORKAROUND(BOOST_LIBSTDCXX_VERSION,<50000)
|
||||
/* std::is_trivially_copyable not provided */
|
||||
boost::has_trivial_copy<element_type>::value
|
||||
#else
|
||||
std::is_trivially_copyable<element_type>::value
|
||||
#endif
|
||||
std::is_trivially_copy_assignable<group_type>::value
|
||||
>{}
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user