dispensed with std::array

This commit is contained in:
joaquintides
2023-04-15 12:13:40 +02:00
parent b1a52d0236
commit 9a0e5e9ea8

View File

@ -11,7 +11,6 @@
#ifndef BOOST_UNORDERED_DETAIL_FOA_CONCURRENT_TABLE_HPP
#define BOOST_UNORDERED_DETAIL_FOA_CONCURRENT_TABLE_HPP
#include <array>
#include <atomic>
#include <boost/assert.hpp>
#include <boost/config.hpp>
@ -94,7 +93,7 @@ public:
void unlock()noexcept{for(auto n=N;n>0;)mutexes[--n].unlock();}
private:
std::array<Mutex,N> mutexes;
Mutex mutexes[N];
};
/* std::shared_lock is C++14 */