Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
apolukhin committed Feb 15, 2024
1 parent 942e2a0 commit eb0e0b1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/core_name/run/fields_names.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ void test_names_as_array() {
}

void test_names_as_array_without_linkage() {
// Disabling for MSVC as it gives a hard error on using local types:
///
// error C7631:
// 'boost::pfr::detail::do_not_use_PFR_with_local_types<testing::unnamed_t>':
// variable with internal linkage declared but not defined
#ifndef _MSC_VER
const auto expected = std::array<std::string_view, 2>{
"unnamed_first",
"unnamed_second"
Expand All @@ -116,6 +122,7 @@ void test_names_as_array_without_linkage() {
for (std::size_t i=0;i<expected.size();++i) {
BOOST_TEST_EQ(value[i], expected[i]);
}
#endif
}

void test_names_as_array_for_empty() {
Expand Down

0 comments on commit eb0e0b1

Please sign in to comment.