mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 03:17:15 +02:00
avoided shadowed declaration warning
This commit is contained in:
@ -132,13 +132,13 @@ void check_container_stats(const Stats& s1, const Stats& s2)
|
|||||||
template <class Container> void test_stats()
|
template <class Container> void test_stats()
|
||||||
{
|
{
|
||||||
using allocator_type = typename Container::allocator_type;
|
using allocator_type = typename Container::allocator_type;
|
||||||
using stats_type = typename Container::stats;
|
using stats = typename Container::stats;
|
||||||
const bool full = true, empty = false;
|
const bool full = true, empty = false;
|
||||||
|
|
||||||
Container c;
|
Container c;
|
||||||
const Container& cc = c;
|
const Container& cc = c;
|
||||||
|
|
||||||
stats_type s = cc.get_stats();
|
stats s = cc.get_stats();
|
||||||
check_container_stats(s, empty);
|
check_container_stats(s, empty);
|
||||||
|
|
||||||
test::reset_sequence();
|
test::reset_sequence();
|
||||||
@ -237,7 +237,7 @@ template <class Container> void test_stats()
|
|||||||
// TODO: concurrent<->unordered interop
|
// TODO: concurrent<->unordered interop
|
||||||
}
|
}
|
||||||
|
|
||||||
UNORDERED_AUTO_TEST (stats) {
|
UNORDERED_AUTO_TEST (stats_) {
|
||||||
#if defined(BOOST_UNORDERED_CFOA_TESTS)
|
#if defined(BOOST_UNORDERED_CFOA_TESTS)
|
||||||
test_stats<
|
test_stats<
|
||||||
boost::concurrent_flat_map<
|
boost::concurrent_flat_map<
|
||||||
|
Reference in New Issue
Block a user