Update Kokkos library in LAMMPS to v4.6.0
This commit is contained in:
@ -53,13 +53,13 @@ TEST(std_algorithms_mod_ops_test, move) {
|
||||
// move constr
|
||||
MyMovableType b(std::move(a));
|
||||
ASSERT_EQ(b.m_value, 11);
|
||||
ASSERT_EQ(a.m_value, -2);
|
||||
ASSERT_EQ(a.m_value, -2); // NOLINT(bugprone-use-after-move)
|
||||
|
||||
// move assign
|
||||
MyMovableType c;
|
||||
c = std::move(b);
|
||||
ASSERT_EQ(c.m_value, 11);
|
||||
ASSERT_EQ(b.m_value, -4);
|
||||
ASSERT_EQ(b.m_value, -4); // NOLINT(bugprone-use-after-move)
|
||||
}
|
||||
|
||||
template <class ViewType>
|
||||
@ -70,7 +70,7 @@ struct StdAlgoModSeqOpsTestMove {
|
||||
void operator()(const int index) const {
|
||||
typename ViewType::value_type a{11};
|
||||
using move_t = decltype(std::move(a));
|
||||
static_assert(std::is_rvalue_reference<move_t>::value);
|
||||
static_assert(std::is_rvalue_reference_v<move_t>);
|
||||
m_view(index) = std::move(a);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user