Skip to content

Commit

Permalink
Drop DualView converting copy assignment operator
Browse files Browse the repository at this point in the history
It is unnecessary, we already have a converting constructor and a
regular copy assignment operator.
  • Loading branch information
dalg24 committed Dec 6, 2023
1 parent b877a6e commit b9b63df
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions containers/src/Kokkos_DualView.hpp
Expand Up @@ -292,15 +292,6 @@ class DualView : public ViewTraits<DataType, Properties...> {
d_view(src.d_view),
h_view(src.h_view) {}

//! Copy assignment operator (shallow copy assignment)
template <typename DT, typename... DP>
DualView& operator=(const DualView<DT, DP...>& src) {
modified_flags = src.modified_flags;
d_view = src.d_view;
h_view = src.h_view;
return *this;
}

//! Subview constructor
template <class DT, class... DP, class Arg0, class... Args>
DualView(const DualView<DT, DP...>& src, const Arg0& arg0, Args... args)
Expand Down

0 comments on commit b9b63df

Please sign in to comment.