Skip to content

Commit

Permalink
Merge pull request #154 from LLNL/bugfix/burmark1/array_test_14
Browse files Browse the repository at this point in the history
Fix array test with c++14
  • Loading branch information
MrBurmark authored Jun 14, 2024
2 parents 8cf15aa + 00545d7 commit 0f07de4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,17 +362,17 @@ CAMP_TEST_BEGIN(array, to_array)

CAMP_TEST_BEGIN(array, tuple_size)
{
constexpr std::size_t size = std::tuple_size<camp::array<double, 7>>::value;
constexpr std::size_t size_v = std::tuple_size_v<camp::array<double, 11>>;
constexpr std::size_t size7 = std::tuple_size<camp::array<double, 7>>::value;
constexpr std::size_t size11 = std::tuple_size<camp::array<double, 11>>::value;

return size == 7 &&
size_v == 11;
return size7 == 7 &&
size11 == 11;
} CAMP_TEST_END(array, tuple_size)

CAMP_TEST_BEGIN(array, tuple_element)
{
constexpr bool element0 = std::is_same_v<double, std::tuple_element_t<0, camp::array<double, 5>>>;
constexpr bool element4 = std::is_same_v<double, std::tuple_element_t<4, camp::array<double, 5>>>;
constexpr bool element0 = std::is_same<double, std::tuple_element_t<0, camp::array<double, 5>>>::value;
constexpr bool element4 = std::is_same<double, std::tuple_element_t<4, camp::array<double, 5>>>::value;

return element0 &&
element4;
Expand Down

0 comments on commit 0f07de4

Please sign in to comment.