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
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion tests/packages/simple_pure/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
9 changes: 3 additions & 6 deletions tests/packages/simple_pure/simple_pure.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
#include <vector>
#include <variant>
#include <string>
#include <iostream>

int main() {
std::vector<std::variant<int, std::string>> v{0, "one", 2, "three"};
std::vector<std::string> 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';

Expand Down