mirror of
https://github.com/boostorg/pfr.git
synced 2026-01-19 04:22:13 +00:00
fix lint issues
This commit is contained in:
@@ -14,7 +14,7 @@ int main() {
|
||||
<< "BOOST_PFR_USE_STD_MAKE_INTEGRAL_SEQUENCE == " << BOOST_PFR_USE_STD_MAKE_INTEGRAL_SEQUENCE << '\n'
|
||||
<< "BOOST_PFR_HAS_GUARANTEED_COPY_ELISION == " << BOOST_PFR_HAS_GUARANTEED_COPY_ELISION << '\n'
|
||||
<< "BOOST_PFR_ENABLE_IMPLICIT_REFLECTION == " << BOOST_PFR_ENABLE_IMPLICIT_REFLECTION << '\n'
|
||||
<< "BOOST_PFR_ENABLE_GETTING_NAMES == " << BOOST_PFR_ENABLE_GETTING_NAMES << '\n'
|
||||
<< "BOOST_PFR_ENABLE_GETTING_NAMES == " << BOOST_PFR_ENABLE_GETTING_NAMES << '\n'
|
||||
<< "BOOST_PFR_ENABLED == " << BOOST_PFR_ENABLED << '\n'
|
||||
<< "__cplusplus == " << __cplusplus << '\n'
|
||||
#ifdef __cpp_structured_bindings
|
||||
|
||||
@@ -47,9 +47,9 @@ void test_get_name_by_type() {
|
||||
void test_names_as_array() {
|
||||
const auto expected = std::array<std::string_view, 4>{
|
||||
"member1",
|
||||
"this_is_a_name",
|
||||
"c",
|
||||
"Forth"
|
||||
"this_is_a_name",
|
||||
"c",
|
||||
"Forth"
|
||||
};
|
||||
const auto value = boost::pfr::names_as_array<Aggregate>();
|
||||
BOOST_TEST_EQ(expected.size(), value.size());
|
||||
|
||||
@@ -30,11 +30,11 @@ static_assert(boost::pfr::get_name<2, Aggregate>() == "c");
|
||||
static_assert(boost::pfr::get_name<3, Aggregate>() == "Forth");
|
||||
|
||||
static_assert(boost::pfr::names_as_array<Aggregate>() == std::array<std::string_view, 4>{
|
||||
"member1",
|
||||
"this_is_a_name",
|
||||
"c",
|
||||
"Forth"
|
||||
});
|
||||
"member1",
|
||||
"this_is_a_name",
|
||||
"c",
|
||||
"Forth"
|
||||
});
|
||||
|
||||
int main() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user