From 3f09061d783064f546ba9c014eeeae0a5a369eea Mon Sep 17 00:00:00 2001 From: Jan Eisenhauer <44572464+JanEisenhauer@users.noreply.github.com> Date: Tue, 11 Jun 2019 12:04:43 +0200 Subject: [PATCH] Remove usage of C++11 features. --- test/flat_map_test.cpp | 12 ++++++------ test/flat_set_test.cpp | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/test/flat_map_test.cpp b/test/flat_map_test.cpp index ef1e3a4..d01598b 100644 --- a/test/flat_map_test.cpp +++ b/test/flat_map_test.cpp @@ -581,13 +581,13 @@ struct with_lookup_by_first bool test_heterogeneous_lookup_by_partial_key() { - flat_map,int, with_lookup_by_first> const map1 - { - {{0, 1}, 3}, - {{0, 2}, 3}, - }; + typedef flat_map,int, with_lookup_by_first> map_t; - auto const first_0_range = map1.equal_range(0); + map_t map1; + map1[std::pair(0, 1)] = 3; + map1[std::pair(0, 2)] = 3; + + std::pair const first_0_range = map1.equal_range(0); return 2 == first_0_range.second - first_0_range.first; } diff --git a/test/flat_set_test.cpp b/test/flat_set_test.cpp index c74cb78..693305f 100644 --- a/test/flat_set_test.cpp +++ b/test/flat_set_test.cpp @@ -597,13 +597,13 @@ struct with_lookup_by_first bool test_heterogeneous_lookup_by_partial_key() { - flat_set, with_lookup_by_first> const set1 - { - {0, 1}, - {0, 2}, - }; + typedef flat_set, with_lookup_by_first> set_t; - auto const first_0_range = set1.equal_range(0); + set_t set1; + set1.insert(std::pair(0, 1)); + set1.insert(std::pair(0, 2)); + + std::pair const first_0_range = set1.equal_range(0); return 2 == first_0_range.second - first_0_range.first; }