-
Notifications
You must be signed in to change notification settings - Fork 4
remove extra semicolons #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -62,8 +62,6 @@ struct va_args<ReturnType> { | |||||
| ::boost::openmethod::detail::va_args<__VA_ARGS__>::registry> | ||||||
|
|
||||||
| #define BOOST_OPENMETHOD(NAME, ARGS, ...) \ | ||||||
| template<typename...> \ | ||||||
| struct BOOST_OPENMETHOD_OVERRIDERS(NAME); \ | ||||||
| struct BOOST_OPENMETHOD_ID(NAME); \ | ||||||
| template<typename... ForwarderParameters> \ | ||||||
| typename ::boost::openmethod::detail::enable_forwarder< \ | ||||||
|
|
@@ -72,14 +70,16 @@ struct va_args<ReturnType> { | |||||
| ForwarderParameters...>::type \ | ||||||
| BOOST_OPENMETHOD_GUIDE(NAME)(ForwarderParameters && ... args); \ | ||||||
| template<typename... ForwarderParameters> \ | ||||||
| inline auto NAME(ForwarderParameters&&... args) -> \ | ||||||
| typename ::boost::openmethod::detail::enable_forwarder< \ | ||||||
| inline auto NAME(ForwarderParameters&&... args) \ | ||||||
| ->typename ::boost::openmethod::detail::enable_forwarder< \ | ||||||
| void, BOOST_OPENMETHOD_TYPE(NAME, ARGS, __VA_ARGS__), \ | ||||||
| ::boost::openmethod::detail::va_args<__VA_ARGS__>::return_type, \ | ||||||
| ForwarderParameters...>::type { \ | ||||||
| return BOOST_OPENMETHOD_TYPE(NAME, ARGS, __VA_ARGS__)::fn( \ | ||||||
| std::forward<ForwarderParameters>(args)...); \ | ||||||
| } | ||||||
| } \ | ||||||
| template<typename...> \ | ||||||
| struct BOOST_OPENMETHOD_OVERRIDERS(NAME) | ||||||
|
|
||||||
| #define BOOST_OPENMETHOD_DETAIL_LOCATE_METHOD(NAME, ARGS) \ | ||||||
| template<typename T> \ | ||||||
|
|
@@ -88,7 +88,7 @@ struct va_args<ReturnType> { | |||||
| struct boost_openmethod_detail_locate_method_aux<void(A...)> { \ | ||||||
| using type = \ | ||||||
| decltype(BOOST_OPENMETHOD_GUIDE(NAME)(std::declval<A>()...)); \ | ||||||
| }; | ||||||
| } | ||||||
|
||||||
| } | |
| }; |
Copilot
AI
Dec 14, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The semicolon at the end of this statement should not be removed. This is part of a macro definition (BOOST_OPENMETHOD_CLASSES), and the statement needs to end with a semicolon for proper syntax. Users of this macro will not add a semicolon after the macro invocation since the macro previously provided it.
| BOOST_OPENMETHOD_REGISTER(::boost::openmethod::use_classes<__VA_ARGS__>) | |
| BOOST_OPENMETHOD_REGISTER(::boost::openmethod::use_classes<__VA_ARGS__>); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -183,7 +183,7 @@ struct vptr_vector : vptr { | |
| } else { | ||
| detail::vptr_vector_vptrs<Registry>.clear(); | ||
| } | ||
| }; | ||
| } | ||
| }; | ||
| }; | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The semicolon at the end of this struct declaration should not be removed. This is part of a macro definition (BOOST_OPENMETHOD), and the struct declaration needs to end with a semicolon for proper syntax. Users of this macro will not add a semicolon after the macro invocation since the macro previously provided it.