Skip to content

Commit a6337d2

Browse files
committed
remove extra semicolons
1 parent 02cffff commit a6337d2

File tree

3 files changed

+20
-16
lines changed

3 files changed

+20
-16
lines changed

include/boost/openmethod/detail/static_list.hpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,11 @@ class static_list {
127127

128128
friend auto operator==(const iterator& a, const iterator& b) -> bool {
129129
return a.ptr == b.ptr;
130-
};
130+
}
131+
131132
friend auto operator!=(const iterator& a, const iterator& b) -> bool {
132133
return a.ptr != b.ptr;
133-
};
134+
}
134135

135136
private:
136137
T* ptr;
@@ -179,11 +180,12 @@ class static_list {
179180
friend auto
180181
operator==(const const_iterator& a, const const_iterator& b) -> bool {
181182
return a.ptr == b.ptr;
182-
};
183+
}
184+
183185
friend auto
184186
operator!=(const const_iterator& a, const const_iterator& b) -> bool {
185187
return a.ptr != b.ptr;
186-
};
188+
}
187189

188190
private:
189191
T* ptr;

include/boost/openmethod/macros.hpp

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ struct va_args<ReturnType> {
6262
::boost::openmethod::detail::va_args<__VA_ARGS__>::registry>
6363

6464
#define BOOST_OPENMETHOD(NAME, ARGS, ...) \
65-
template<typename...> \
66-
struct BOOST_OPENMETHOD_OVERRIDERS(NAME); \
6765
struct BOOST_OPENMETHOD_ID(NAME); \
6866
template<typename... ForwarderParameters> \
6967
typename ::boost::openmethod::detail::enable_forwarder< \
@@ -72,14 +70,16 @@ struct va_args<ReturnType> {
7270
ForwarderParameters...>::type \
7371
BOOST_OPENMETHOD_GUIDE(NAME)(ForwarderParameters && ... args); \
7472
template<typename... ForwarderParameters> \
75-
inline auto NAME(ForwarderParameters&&... args) -> \
76-
typename ::boost::openmethod::detail::enable_forwarder< \
73+
inline auto NAME(ForwarderParameters&&... args) \
74+
->typename ::boost::openmethod::detail::enable_forwarder< \
7775
void, BOOST_OPENMETHOD_TYPE(NAME, ARGS, __VA_ARGS__), \
7876
::boost::openmethod::detail::va_args<__VA_ARGS__>::return_type, \
7977
ForwarderParameters...>::type { \
8078
return BOOST_OPENMETHOD_TYPE(NAME, ARGS, __VA_ARGS__)::fn( \
8179
std::forward<ForwarderParameters>(args)...); \
82-
}
80+
} \
81+
template<typename...> \
82+
struct BOOST_OPENMETHOD_OVERRIDERS(NAME)
8383

8484
#define BOOST_OPENMETHOD_DETAIL_LOCATE_METHOD(NAME, ARGS) \
8585
template<typename T> \
@@ -88,7 +88,7 @@ struct va_args<ReturnType> {
8888
struct boost_openmethod_detail_locate_method_aux<void(A...)> { \
8989
using type = \
9090
decltype(BOOST_OPENMETHOD_GUIDE(NAME)(std::declval<A>()...)); \
91-
};
91+
}
9292

9393
#define BOOST_OPENMETHOD_DECLARE_OVERRIDER(NAME, ARGS, ...) \
9494
template<typename...> \
@@ -102,13 +102,15 @@ struct va_args<ReturnType> {
102102
static auto next(Args&&... args) -> decltype(auto); \
103103
}; \
104104
inline auto BOOST_OPENMETHOD_OVERRIDERS( \
105-
NAME)<__VA_ARGS__ ARGS>::has_next() -> bool { \
105+
NAME)<__VA_ARGS__ ARGS>::has_next() \
106+
->bool { \
106107
return boost_openmethod_detail_locate_method_aux< \
107108
void ARGS>::type::has_next<fn>(); \
108109
} \
109110
template<typename... Args> \
110111
inline auto BOOST_OPENMETHOD_OVERRIDERS(NAME)<__VA_ARGS__ ARGS>::next( \
111-
Args&&... args) -> decltype(auto) { \
112+
Args&&... args) \
113+
->decltype(auto) { \
112114
return boost_openmethod_detail_locate_method_aux< \
113115
void ARGS>::type::next<fn>(std::forward<Args>(args)...); \
114116
}
@@ -123,7 +125,7 @@ struct va_args<ReturnType> {
123125
#define BOOST_OPENMETHOD_DEFINE_OVERRIDER(NAME, ARGS, ...) \
124126
BOOST_OPENMETHOD_DETAIL_REGISTER_OVERRIDER(NAME, ARGS, __VA_ARGS__) \
125127
auto BOOST_OPENMETHOD_OVERRIDER(NAME, ARGS, __VA_ARGS__)::fn ARGS \
126-
-> boost::mp11::mp_back<boost::mp11::mp_list<__VA_ARGS__>>
128+
->boost::mp11::mp_back<boost::mp11::mp_list<__VA_ARGS__>>
127129

128130
#define BOOST_OPENMETHOD_OVERRIDE(NAME, ARGS, ...) \
129131
BOOST_OPENMETHOD_DECLARE_OVERRIDER(NAME, ARGS, __VA_ARGS__) \
@@ -133,9 +135,9 @@ struct va_args<ReturnType> {
133135
BOOST_OPENMETHOD_DECLARE_OVERRIDER(NAME, ARGS, __VA_ARGS__) \
134136
BOOST_OPENMETHOD_DETAIL_REGISTER_OVERRIDER(NAME, ARGS, __VA_ARGS__) \
135137
inline auto BOOST_OPENMETHOD_OVERRIDER(NAME, ARGS, __VA_ARGS__)::fn ARGS \
136-
-> boost::mp11::mp_back<boost::mp11::mp_list<__VA_ARGS__>>
138+
->boost::mp11::mp_back<boost::mp11::mp_list<__VA_ARGS__>>
137139

138140
#define BOOST_OPENMETHOD_CLASSES(...) \
139-
BOOST_OPENMETHOD_REGISTER(::boost::openmethod::use_classes<__VA_ARGS__>);
141+
BOOST_OPENMETHOD_REGISTER(::boost::openmethod::use_classes<__VA_ARGS__>)
140142

141143
#endif

include/boost/openmethod/policies/vptr_vector.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ struct vptr_vector : vptr {
183183
} else {
184184
detail::vptr_vector_vptrs<Registry>.clear();
185185
}
186-
};
186+
}
187187
};
188188
};
189189

0 commit comments

Comments
 (0)