fix example code. (#17502)

This commit is contained in:
tre 2021-04-28 17:14:27 -03:00 committed by GitHub
parent 4a58116c3c
commit 7fea4f15c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;