Skip to content

Commit

Permalink
Merge pull request #6 from stephenberry/cpp20
Browse files Browse the repository at this point in the history
cpp20 requirement
  • Loading branch information
stephenberry authored Aug 1, 2023
2 parents f83aba2 + fc55b8a commit 27f2995
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion include/argz/argz.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ namespace argz
std::cout << '\n';
}

template <class int_t, class char_ptr_t, std::enable_if_t<std::is_pointer_v<char_ptr_t>, int> = 0>
template <class int_t, class char_ptr_t> requires (std::is_pointer_v<char_ptr_t>)
inline void parse(about& about, options& opts, const int_t argc, char_ptr_t argv)
{
if (argc == 1) {
Expand Down

0 comments on commit 27f2995

Please sign in to comment.