forked from boostorg/unordered
provided concurrent_table_arrays ctor to satisfy older compilers
This commit is contained in:
committed by
Christian Mazakas
parent
96562f4c3b
commit
77eaab4803
@ -201,10 +201,13 @@ struct concurrent_table_arrays:table_arrays<Value,Group,SizePolicy>
|
|||||||
{
|
{
|
||||||
using super=table_arrays<Value,Group,SizePolicy>;
|
using super=table_arrays<Value,Group,SizePolicy>;
|
||||||
|
|
||||||
|
concurrent_table_arrays(const super& arrays,group_access *pga):
|
||||||
|
super{arrays},group_accesses{pga}{}
|
||||||
|
|
||||||
template<typename Allocator>
|
template<typename Allocator>
|
||||||
static concurrent_table_arrays new_(Allocator& al,std::size_t n)
|
static concurrent_table_arrays new_(Allocator& al,std::size_t n)
|
||||||
{
|
{
|
||||||
concurrent_table_arrays arrays={super::new_(al,n),nullptr};
|
concurrent_table_arrays arrays{super::new_(al,n),nullptr};
|
||||||
if(!arrays.elements){
|
if(!arrays.elements){
|
||||||
arrays.group_accesses=dummy_group_accesses<SizePolicy::min_size()>();
|
arrays.group_accesses=dummy_group_accesses<SizePolicy::min_size()>();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user