Skip to content

Commit e0afaab

Browse files
author
Hana Dusíková
committed
update for pattern matching :)
1 parent 04db9f9 commit e0afaab

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/ctre/return_type.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,14 @@ template <typename Iterator, typename... Captures> class regex_results {
223223
return bool(_captures.template select<0>());
224224
}
225225

226+
constexpr CTRE_FORCE_INLINE auto operator*() const noexcept {
227+
return *this;
228+
}
229+
230+
constexpr CTRE_FORCE_INLINE auto operator*() noexcept {
231+
return *this;
232+
}
233+
226234
constexpr CTRE_FORCE_INLINE operator std::basic_string_view<char_type>() const noexcept {
227235
return to_view();
228236
}

0 commit comments

Comments
 (0)