mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
fix example code. (#17502)
This commit is contained in:
parent
4a58116c3c
commit
7fea4f15c4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user