diff options
| author | tre <42829628+w-gomes@users.noreply.github.com> | 2021-04-28 17:14:27 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-28 13:14:27 -0700 |
| commit | 7fea4f15c4c62160a3a12dc590b0a2e9d4cfb444 (patch) | |
| tree | 82cfa25915f3e0897ec0f1c08abba28681ab6190 /docs/examples | |
| parent | 4a58116c3cd078f864528641df742d13f743d3b4 (diff) | |
| download | vcpkg-7fea4f15c4c62160a3a12dc590b0a2e9d4cfb444.tar.gz vcpkg-7fea4f15c4c62160a3a12dc590b0a2e9d4cfb444.zip | |
fix example code. (#17502)
Diffstat (limited to 'docs/examples')
| -rw-r--r-- | docs/examples/manifest-mode-cmake.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/examples/manifest-mode-cmake.md b/docs/examples/manifest-mode-cmake.md index 2a780f7de..77891b60e 100644 --- a/docs/examples/manifest-mode-cmake.md +++ b/docs/examples/manifest-mode-cmake.md @@ -30,6 +30,7 @@ find_package(range-v3 REQUIRED) find_package(cxxopts REQUIRED) add_executable(fibo src/main.cxx) +target_compile_features(fibo PRIVATE cxx_std_17) target_link_libraries(fibo PRIVATE @@ -45,7 +46,7 @@ And then we should add `main.cxx`: #include <fmt/format.h> #include <range/v3/view.hpp> -namespace view = ranges::view; +namespace view = ranges::views; int fib(int x) { int a = 0, b = 1; |
