mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 03:17:15 +02:00
Clean up usage of decltype to help msvc-14.3
This commit is contained in:
@ -380,6 +380,9 @@ namespace {
|
||||
void empty_visit(X*, G gen, test::random_generator rg)
|
||||
{
|
||||
auto values = make_random_values(1024 * 16, [&] { return gen(rg); });
|
||||
using values_type = decltype(values);
|
||||
using span_value_type = typename values_type::value_type;
|
||||
|
||||
raii::reset_counts();
|
||||
|
||||
{
|
||||
@ -392,8 +395,7 @@ namespace {
|
||||
std::uint64_t old_move_assignment = raii::move_assignment;
|
||||
|
||||
{
|
||||
thread_runner(
|
||||
values, [&x](boost::span<typename decltype(values)::value_type> s) {
|
||||
thread_runner(values, [&x](boost::span<span_value_type> s) {
|
||||
std::atomic<std::uint64_t> num_visits{0};
|
||||
|
||||
x.visit_all(
|
||||
|
Reference in New Issue
Block a user