diff --git a/CMakeLists.txt b/CMakeLists.txt index 2002800..2de1330 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,7 +27,7 @@ endif() set_property(TARGET argz_argz PROPERTY EXPORT_NAME argz) -target_compile_features(argz_argz INTERFACE cxx_std_17) +target_compile_features(argz_argz INTERFACE cxx_std_20) target_include_directories( argz_argz ${warning_guard} INTERFACE "$" diff --git a/README.md b/README.md index ed00c4e..1b1056b 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A light weight C++ in memory argument parser. ## Highlights * Single header file -* Requires C++17 +* Requires C++20 * Less than 200 lines of code * Apache 2.0 License diff --git a/include/argz/argz.hpp b/include/argz/argz.hpp index d002ea6..a3168f2 100644 --- a/include/argz/argz.hpp +++ b/include/argz/argz.hpp @@ -132,7 +132,7 @@ namespace argz std::cout << '\n'; } - template , int> = 0> + template requires (std::is_pointer_v) inline void parse(about& about, options& opts, const int_t argc, char_ptr_t argv) { if (argc == 1) {