Skip to content

Commit

Permalink
Merge commit '4e5b779b1a81718a6bab6a7198e91a15217ae517'
Browse files Browse the repository at this point in the history
  • Loading branch information
hanickadot committed Jan 24, 2024
2 parents 132cea5 + 4e5b779 commit 0eb07ba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion include/ctre/return_type.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -529,10 +529,12 @@ template <typename Iterator, typename... Captures> struct is_regex_results_t<reg

template <typename T> constexpr bool is_regex_results_v = is_regex_results_t<T>();

#if __cpp_concepts >= 202002L
#if __cpp_concepts >= 201907L
template <typename T> concept capture_groups = is_regex_results_v<T>;
#endif



template <typename ResultIterator, typename Pattern> using return_type = decltype(regex_results(std::declval<ResultIterator>(), find_captures(Pattern{})));

}
Expand Down
2 changes: 1 addition & 1 deletion single-header/ctre-unicode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3758,7 +3758,7 @@ template <typename Iterator, typename... Captures> struct is_regex_results_t<reg

template <typename T> constexpr bool is_regex_results_v = is_regex_results_t<T>();

#if __cpp_concepts >= 202002L
#if __cpp_concepts >= 201907L
template <typename T> concept capture_groups = is_regex_results_v<T>;
#endif

Expand Down
2 changes: 1 addition & 1 deletion single-header/ctre.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3755,7 +3755,7 @@ template <typename Iterator, typename... Captures> struct is_regex_results_t<reg

template <typename T> constexpr bool is_regex_results_v = is_regex_results_t<T>();

#if __cpp_concepts >= 202002L
#if __cpp_concepts >= 201907L
template <typename T> concept capture_groups = is_regex_results_v<T>;
#endif

Expand Down

0 comments on commit 0eb07ba

Please sign in to comment.