Skip to content

Commit

Permalink
add cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
alfC committed Dec 19, 2024
1 parent 5cbc489 commit 15c4ccf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/reinterpret_array_cast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,10 @@ auto main() -> int { // NOLINT(readability-function-cognitive-complexity,bugpro
BOOST_TEST( std::abs( arr3[5][1] - imag(arr[5]) ) < 1E-6 );

arr.reinterpret_array_cast<double>(2)[0][0] = 99.9;
arr().reinterpret_array_cast<double>(2)[0][0] = 99.9;
BOOST_TEST( std::abs( arr.reinterpret_array_cast<double>(2)[0][0] - 99.9) < 1E-6 );

arr().reinterpret_array_cast<double>(2)[0][0] = 99.9;
BOOST_TEST( std::abs( arr().reinterpret_array_cast<double>(2)[0][0] - 99.9) < 1E-6 );
#endif
}

Expand Down

0 comments on commit 15c4ccf

Please sign in to comment.