From e94b247698175e60e769091bd52acfb9109482bf Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Fri, 9 Apr 2021 10:03:59 +0300 Subject: [PATCH] remove extra semicolons (fixes #72) --- include/boost/pfr/detail/fields_count.hpp | 12 ++++++------ test/run/functions_for.cpp | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/boost/pfr/detail/fields_count.hpp b/include/boost/pfr/detail/fields_count.hpp index f250bb5..dbad265 100644 --- a/include/boost/pfr/detail/fields_count.hpp +++ b/include/boost/pfr/detail/fields_count.hpp @@ -31,11 +31,11 @@ struct ubiq_lref_constructor { std::size_t ignore; template constexpr operator Type&() const && noexcept { // tweak for template_unconstrained.cpp like cases return detail::unsafe_declval(); - }; + } template constexpr operator Type&() const & noexcept { // tweak for optional_chrono.cpp like cases return detail::unsafe_declval(); - }; + } }; ///////////////////// Structure that can be converted to rvalue reference to anything @@ -43,7 +43,7 @@ struct ubiq_rref_constructor { std::size_t ignore; template /*constexpr*/ operator Type() const && noexcept { // Allows initialization of rvalue reference fields and move-only types return detail::unsafe_declval(); - }; + } }; @@ -109,13 +109,13 @@ struct ubiq_lref_base_asserting { noexcept(detail::static_assert_non_inherited()) // force the computation of assert function { return detail::unsafe_declval(); - }; + } template constexpr operator Type&() const & // tweak for optional_chrono.cpp like cases noexcept(detail::static_assert_non_inherited()) // force the computation of assert function { return detail::unsafe_declval(); - }; + } }; template @@ -124,7 +124,7 @@ struct ubiq_rref_base_asserting { noexcept(detail::static_assert_non_inherited()) // force the computation of assert function { return detail::unsafe_declval(); - }; + } }; template ::value>::type> diff --git a/test/run/functions_for.cpp b/test/run/functions_for.cpp index 4b21919..1cedcc1 100644 --- a/test/run/functions_for.cpp +++ b/test/run/functions_for.cpp @@ -73,7 +73,7 @@ void test_empty_struct() { namespace foo { struct testing { bool b1, b2; int i; }; - BOOST_PFR_FUNCTIONS_FOR(testing); + BOOST_PFR_FUNCTIONS_FOR(testing) } template