mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-31 11:57:15 +02:00
Avoid unsupported typedef on earlier compilers
This commit is contained in:
@@ -205,7 +205,7 @@ namespace {
|
|||||||
{
|
{
|
||||||
template <class T, class X> void operator()(std::vector<T>& values, X& x)
|
template <class T, class X> void operator()(std::vector<T>& values, X& x)
|
||||||
{
|
{
|
||||||
std::atomic_uint64_t num_inserts{0};
|
std::atomic<std::uint64_t> num_inserts{0};
|
||||||
thread_runner(values, [&x, &num_inserts](boost::span<T> s) {
|
thread_runner(values, [&x, &num_inserts](boost::span<T> s) {
|
||||||
for (auto const& r : s) {
|
for (auto const& r : s) {
|
||||||
bool b = x.insert(r);
|
bool b = x.insert(r);
|
||||||
@@ -235,7 +235,7 @@ namespace {
|
|||||||
{
|
{
|
||||||
BOOST_TEST_EQ(raii::copy_constructor, 0);
|
BOOST_TEST_EQ(raii::copy_constructor, 0);
|
||||||
|
|
||||||
std::atomic_uint64_t num_inserts{0};
|
std::atomic<std::uint64_t> num_inserts{0};
|
||||||
thread_runner(values, [&x, &num_inserts](boost::span<T> s) {
|
thread_runner(values, [&x, &num_inserts](boost::span<T> s) {
|
||||||
for (auto& r : s) {
|
for (auto& r : s) {
|
||||||
bool b = x.insert(std::move(r));
|
bool b = x.insert(std::move(r));
|
||||||
|
Reference in New Issue
Block a user