Skip to content

Commit

Permalink
Move to C++17, dropping C++11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Tessil committed Sep 14, 2024
1 parent b28a4c2 commit d11e3bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ target_link_libraries(your_target PRIVATE tsl::hopscotch_map)

If the project has been installed through `make install`, you can also use `find_package(tsl-hopscotch-map REQUIRED)` instead of `add_subdirectory`.

The code should work with any C++11 standard-compliant compiler and has been tested with GCC 4.8.4, Clang 3.5.0 and Visual Studio 2015.
The code should work with any C++17 standard-compliant compiler.

To run the tests you will need the Boost Test library and CMake.

Expand Down
4 changes: 2 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ add_executable(tsl_hopscotch_map_tests "main.cpp"
"hopscotch_set_tests.cpp"
"policy_tests.cpp")

target_compile_features(tsl_hopscotch_map_tests PRIVATE cxx_std_11)
target_compile_features(tsl_hopscotch_map_tests PRIVATE cxx_std_17)

if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
target_compile_options(tsl_hopscotch_map_tests PRIVATE -Werror -Wall -Wextra -Wold-style-cast -DTSL_DEBUG -UNDEBUG)
Expand All @@ -18,7 +18,7 @@ endif()

# Boost::unit_test_framework
set(Boost_USE_STATIC_LIBS ON)
find_package(Boost 1.54.0 REQUIRED COMPONENTS unit_test_framework)
find_package(Boost REQUIRED COMPONENTS unit_test_framework)
target_link_libraries(tsl_hopscotch_map_tests PRIVATE Boost::unit_test_framework)

# tsl::hopscotch_map
Expand Down

0 comments on commit d11e3bd

Please sign in to comment.