From 65b56d122b68bd040647e50b92c361d80a8f0701 Mon Sep 17 00:00:00 2001 From: Alexander Bigerl Date: Thu, 3 Jun 2021 19:50:40 +0200 Subject: [PATCH 1/2] reverted whitespace changes --- tests/CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 348f5c6..81383a3 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -3,11 +3,11 @@ cmake_minimum_required(VERSION 3.8) project(tsl_sparse_map_tests) add_executable(tsl_sparse_map_tests "main.cpp" - "custom_allocator_tests.cpp" - "policy_tests.cpp" - "popcount_tests.cpp" - "sparse_map_tests.cpp" - "sparse_set_tests.cpp") + "custom_allocator_tests.cpp" + "policy_tests.cpp" + "popcount_tests.cpp" + "sparse_map_tests.cpp" + "sparse_set_tests.cpp") target_compile_features(tsl_sparse_map_tests PRIVATE cxx_std_11) @@ -23,4 +23,4 @@ target_link_libraries(tsl_sparse_map_tests PRIVATE Boost::unit_test_framework) # tsl::sparse_map add_subdirectory(../ ${CMAKE_CURRENT_BINARY_DIR}/tsl) -target_link_libraries(tsl_sparse_map_tests PRIVATE tsl::sparse_map) \ No newline at end of file +target_link_libraries(tsl_sparse_map_tests PRIVATE tsl::sparse_map) From 22b5c092c3c3032a77e666a570b12c5e852b8fc7 Mon Sep 17 00:00:00 2001 From: Alexander Bigerl Date: Thu, 3 Jun 2021 20:13:44 +0200 Subject: [PATCH 2/2] added typename for sparse_hash::value_type/const_pointer --- include/tsl/sparse_hash.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/tsl/sparse_hash.h b/include/tsl/sparse_hash.h index 6a83f0a..c9b5c88 100644 --- a/include/tsl/sparse_hash.h +++ b/include/tsl/sparse_hash.h @@ -1126,10 +1126,10 @@ class sparse_hash : private Allocator, public: using iterator_category = std::forward_iterator_tag; - using value_type = const sparse_hash::value_type; + using value_type = const typename sparse_hash::value_type; using difference_type = std::ptrdiff_t; using reference = value_type &; - using pointer = sparse_hash::const_pointer; + using pointer = typename sparse_hash::const_pointer; sparse_iterator() noexcept {}