Skip to content

Commit e18050d

Browse files
author
Hana Dusíková
committed
unsynced single-header version
1 parent 5a2283b commit e18050d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

single-header/ctre.hpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,6 +1361,7 @@ struct ascii_chars : char_range<'\x00','\x7F'> { };
13611361

13621362
// master branch is not including unicode db (for now)
13631363
// #include "../unicode-db/unicode.hpp"
1364+
#include <array>
13641365

13651366
namespace ctre {
13661367

@@ -2310,12 +2311,22 @@ template <> struct captures<> {
23102311
template <typename> CTRE_FORCE_INLINE static constexpr bool exists() noexcept {
23112312
return false;
23122313
}
2314+
#if __cpp_nontype_template_parameter_class
2315+
template <ctll::fixed_string> CTRE_FORCE_INLINE static constexpr bool exists() noexcept {
2316+
return false;
2317+
}
2318+
#endif
23132319
template <size_t> CTRE_FORCE_INLINE constexpr auto & select() const noexcept {
23142320
return capture_not_exists;
23152321
}
23162322
template <typename> CTRE_FORCE_INLINE constexpr auto & select() const noexcept {
23172323
return capture_not_exists;
23182324
}
2325+
#if __cpp_nontype_template_parameter_class
2326+
template <ctll::fixed_string> CTRE_FORCE_INLINE constexpr auto & select() const noexcept {
2327+
return capture_not_exists;
2328+
}
2329+
#endif
23192330
};
23202331

23212332
template <typename Iterator, typename... Captures> class regex_results {

0 commit comments

Comments
 (0)