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 {} 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)