Skip to content

Commit 27f2995

Browse files
authored
Merge pull request #6 from stephenberry/cpp20
cpp20 requirement
2 parents f83aba2 + fc55b8a commit 27f2995

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ endif()
2727

2828
set_property(TARGET argz_argz PROPERTY EXPORT_NAME argz)
2929

30-
target_compile_features(argz_argz INTERFACE cxx_std_17)
30+
target_compile_features(argz_argz INTERFACE cxx_std_20)
3131
target_include_directories(
3232
argz_argz ${warning_guard}
3333
INTERFACE "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A light weight C++ in memory argument parser.
44
## Highlights
55

66
* Single header file
7-
* Requires C++17
7+
* Requires C++20
88
* Less than 200 lines of code
99
* Apache 2.0 License
1010

include/argz/argz.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ namespace argz
132132
std::cout << '\n';
133133
}
134134

135-
template <class int_t, class char_ptr_t, std::enable_if_t<std::is_pointer_v<char_ptr_t>, int> = 0>
135+
template <class int_t, class char_ptr_t> requires (std::is_pointer_v<char_ptr_t>)
136136
inline void parse(about& about, options& opts, const int_t argc, char_ptr_t argv)
137137
{
138138
if (argc == 1) {

0 commit comments

Comments
 (0)