diff --git a/src/mesh/SubItemArrayPerItem.hpp b/src/mesh/SubItemArrayPerItem.hpp index 8c8b1724cd1bc8ea019af7349aee17f9ac64c87b..f2103789e9a49c92b921fe2f8b24b3bdaf8f69ec 100644 --- a/src/mesh/SubItemArrayPerItem.hpp +++ b/src/mesh/SubItemArrayPerItem.hpp @@ -42,15 +42,13 @@ class SubItemArrayPerItem // Allow const std:weak_ptr version to access our data friend SubItemArrayPerItem<std::add_const_t<DataType>, ItemOfItem, ConnectivityWeakPtr>; - // Allow const std:shared_ptr version to access our data + // Allow non-const std:shared_ptr version to access our data friend SubItemArrayPerItem<std::remove_const_t<DataType>, ItemOfItem, ConnectivitySharedPtr>; - // Allow const std:weak_ptr version to access our data + // Allow non-const std:weak_ptr version to access our data friend SubItemArrayPerItem<std::remove_const_t<DataType>, ItemOfItem, ConnectivityWeakPtr>; public: - using ToShared = SubItemArrayPerItem<DataType, ItemOfItem, ConnectivitySharedPtr>; - friend PUGS_INLINE SubItemArrayPerItem<std::remove_const_t<DataType>, ItemOfItem, ConnectivityPtr> copy(SubItemArrayPerItem<DataType, ItemOfItem, ConnectivityPtr>& source) { diff --git a/src/mesh/SubItemValuePerItem.hpp b/src/mesh/SubItemValuePerItem.hpp index b86b075ecbb44ff0f95a1a28b1f8f2468d98b2e3..defdc8fc9711c6be265e022e0bb0c710d078226d 100644 --- a/src/mesh/SubItemValuePerItem.hpp +++ b/src/mesh/SubItemValuePerItem.hpp @@ -41,15 +41,13 @@ class SubItemValuePerItem // Allow const std:weak_ptr version to access our data friend SubItemValuePerItem<std::add_const_t<DataType>, ItemOfItem, ConnectivityWeakPtr>; - // Allow const std:shared_ptr version to access our data + // Allow non-const std:shared_ptr version to access our data friend SubItemValuePerItem<std::remove_const_t<DataType>, ItemOfItem, ConnectivitySharedPtr>; - // Allow const std:weak_ptr version to access our data + // Allow non-const std:weak_ptr version to access our data friend SubItemValuePerItem<std::remove_const_t<DataType>, ItemOfItem, ConnectivityWeakPtr>; public: - using ToShared = SubItemValuePerItem<DataType, ItemOfItem, ConnectivitySharedPtr>; - friend PUGS_INLINE SubItemValuePerItem<std::remove_const_t<DataType>, ItemOfItem, ConnectivityPtr> copy(SubItemValuePerItem<DataType, ItemOfItem, ConnectivityPtr>& source) {