Skip to content

Commit ae27085

Browse files
authored
Merge pull request #75 from mordante/extra_semicolon
Fixes compiler warning about extra semicolons.
2 parents 643f82b + 167e93e commit ae27085

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

include/ctll/grammars.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ template <typename T, typename... As> constexpr auto pop_front_and_push_front(T
4949

5050
// match any term
5151
struct anything {
52-
constexpr inline anything() noexcept { };
52+
constexpr inline anything() noexcept { }
5353
template <auto V> constexpr anything(term<V>) noexcept;
5454
};
5555

5656
// match range of term A-B
5757
template <auto A, decltype(A) B> struct range {
58-
constexpr inline range() noexcept { };
58+
constexpr inline range() noexcept { }
5959
//template <auto V> constexpr range(term<V>) noexcept requires (A <= V) && (V <= B);
6060
template <auto V, typename = std::enable_if_t<(A <= V) && (V <= B)>> constexpr inline range(term<V>) noexcept;
6161
};
@@ -68,7 +68,7 @@ template <auto V, auto... Set> struct contains {
6868

6969
// match terms defined in set
7070
template <auto... Def> struct set {
71-
constexpr inline set() noexcept { };
71+
constexpr inline set() noexcept { }
7272
#ifdef __EDG__
7373
template <auto V, typename = std::enable_if_t<contains<V, Def...>::value>> constexpr inline set(term<V>) noexcept;
7474
#else
@@ -78,7 +78,7 @@ template <auto... Def> struct set {
7878

7979
// match terms not defined in set
8080
template <auto... Def> struct neg_set {
81-
constexpr inline neg_set() noexcept { };
81+
constexpr inline neg_set() noexcept { }
8282

8383
#ifdef __EDG__
8484
template <auto V, typename = std::enable_if_t<!contains<V, Def...>::value>> constexpr inline neg_set(term<V>) noexcept;

include/ctre/wrapper.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ template <typename RE> struct regular_expression {
3838
template <typename IteratorBegin, typename IteratorEnd> constexpr CTRE_FORCE_INLINE static auto search_2(IteratorBegin begin, IteratorEnd end) noexcept {
3939
return search_re(begin, end, RE());
4040
}
41-
constexpr CTRE_FORCE_INLINE regular_expression() noexcept { };
42-
constexpr CTRE_FORCE_INLINE regular_expression(RE) noexcept { };
41+
constexpr CTRE_FORCE_INLINE regular_expression() noexcept { }
42+
constexpr CTRE_FORCE_INLINE regular_expression(RE) noexcept { }
4343
template <typename Iterator> constexpr CTRE_FORCE_INLINE static auto match(Iterator begin, Iterator end) noexcept {
4444
return match_re(begin, end, RE());
4545
}

0 commit comments

Comments
 (0)