diff --git a/CMakeLists.txt b/CMakeLists.txt index 7246005..70b0923 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,8 +36,7 @@ target_compile_features(continuable-base cxx_defaulted_functions cxx_nullptr cxx_trailing_return_types - cxx_return_type_deduction - $<$:cxx_std_17>) + cxx_return_type_deduction) add_library(continuable INTERFACE) diff --git a/include/continuable/continuable-base.hpp b/include/continuable/continuable-base.hpp index 1048f7f..31c0b2f 100644 --- a/include/continuable/continuable-base.hpp +++ b/include/continuable/continuable-base.hpp @@ -250,8 +250,7 @@ public: /// http_request("github.com") /// .then([](std::string github) { }) /// .catching([](std::error_condition error) { - /// // Handle the error here - /// // ... + /// error.message(); // Handle the error here /// }); /// ``` /// diff --git a/include/continuable/continuable.hpp b/include/continuable/continuable.hpp index 0db85be..09de053 100644 --- a/include/continuable/continuable.hpp +++ b/include/continuable/continuable.hpp @@ -34,6 +34,7 @@ #include "function2/function2.hpp" #include +#include namespace cti { // clang-format off diff --git a/test/playground/test-playground.cpp b/test/playground/test-playground.cpp index ed30181..5e3011d 100644 --- a/test/playground/test-playground.cpp +++ b/test/playground/test-playground.cpp @@ -22,4 +22,6 @@ #include -int main(int, char**) { return 0; } +int main(int, char**) { + return 0; +}