Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/tsl/sparse_hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}

Expand Down
12 changes: 6 additions & 6 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)
target_link_libraries(tsl_sparse_map_tests PRIVATE tsl::sparse_map)