diff --git a/README.md b/README.md index 518b6c966..c2a56ab8c 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,6 @@ Some know missing features that will be developed soon: - The docs are not written - Dedicated entrypoints are planned for projects wanting to support discovery - No support for other targets besides install -- C++17 is required for the test suite because it's more fun than C++11/14 - Wheels are not fully reproducible yet - Windows ARM support missing diff --git a/tests/packages/simple_pure/CMakeLists.txt b/tests/packages/simple_pure/CMakeLists.txt index f3641ecc7..c6e23273f 100644 --- a/tests/packages/simple_pure/CMakeLists.txt +++ b/tests/packages/simple_pure/CMakeLists.txt @@ -4,7 +4,7 @@ project(simple_pure LANGUAGES CXX) add_executable(simple_pure simple_pure.cpp) -target_compile_features(simple_pure PUBLIC cxx_std_17) +target_compile_features(simple_pure PUBLIC cxx_std_11) install(TARGETS simple_pure) diff --git a/tests/packages/simple_pure/simple_pure.cpp b/tests/packages/simple_pure/simple_pure.cpp index e060b547b..e86009b3e 100644 --- a/tests/packages/simple_pure/simple_pure.cpp +++ b/tests/packages/simple_pure/simple_pure.cpp @@ -1,15 +1,12 @@ #include -#include #include #include int main() { - std::vector> v{0, "one", 2, "three"}; + std::vector v{"0", "one", "2", "three"}; - for (auto& e : v) { - std::visit([](auto&& arg) { - std::cout << arg << ' '; - }, e); + for (const auto& arg : v) { + std::cout << arg << ' '; } std::cout << '\n';