From 74a47f6181c12f193ebfab77dbe1c3e2d0a32a35 Mon Sep 17 00:00:00 2001 From: Alfredo Correa Date: Wed, 9 Oct 2024 17:36:56 -0700 Subject: [PATCH] more tidy --- test/fix_complex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/fix_complex.cpp b/test/fix_complex.cpp index 636295ac..512362e7 100644 --- a/test/fix_complex.cpp +++ b/test/fix_complex.cpp @@ -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(&buffer[0]) == static_cast(&Aarr[0][0]) ); + BOOST_TEST( static_cast(buffer.data()) == static_cast(&Aarr[0][0]) ); #elif defined(_LIBCPP_VERSION) BOOST_TEST( static_cast(&buffer[4]) == static_cast(&Aarr[0][0]) ); // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) #endif