Skip to content

Commit

Permalink
more tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
alfC committed Oct 10, 2024
1 parent 00441ea commit 74a47f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/fix_complex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ BOOST_AUTO_TEST_CASE(pmr_complex_initialized_4) {
BOOST_TEST( std::abs( buffer[1] - 5.0 ) < 1E-6 );

#if defined(__GLIBCXX__)
BOOST_TEST( static_cast<void*>(&buffer[0]) == static_cast<void*>(&Aarr[0][0]) );
BOOST_TEST( static_cast<void*>(buffer.data()) == static_cast<void*>(&Aarr[0][0]) );
#elif defined(_LIBCPP_VERSION)
BOOST_TEST( static_cast<void*>(&buffer[4]) == static_cast<void*>(&Aarr[0][0]) ); // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic)
#endif
Expand Down

0 comments on commit 74a47f6

Please sign in to comment.