Clean up tag dispatch for group_type copy assignment

This commit is contained in:
Christian Mazakas
2023-04-12 14:41:36 -07:00
parent ecd4a82ed5
commit d8bc38f154
2 changed files with 2 additions and 9 deletions

View File

@ -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;
}

View File

@ -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
>{}
);
}