Skip to content

Commit 1ccaf41

Browse files
authored
Merge Fix mismatch type of VectorCache and index_map
This PR fixes the mismatch type of VectorCache and index_map Related PR: #1802
2 parents 936f87c + 02a5695 commit 1ccaf41

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

core/distributed/index_map.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ index_map<LocalIndexType, GlobalIndexType>::index_map(
192192
}
193193

194194

195-
#define GKO_DECLARE_INDEX_MAP(_ltype, _gtype) struct index_map<_ltype, _gtype>
195+
#define GKO_DECLARE_INDEX_MAP(_ltype, _gtype) class index_map<_ltype, _gtype>
196196

197197
GKO_INSTANTIATE_FOR_EACH_LOCAL_GLOBAL_INDEX_TYPE(GKO_DECLARE_INDEX_MAP);
198198

include/ginkgo/core/distributed/index_map.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ enum class index_space {
6565
* \tparam GlobalIndexType type for global indices
6666
*/
6767
template <typename LocalIndexType, typename GlobalIndexType = int64>
68-
struct index_map {
68+
class index_map {
69+
public:
6970
using partition_type = Partition<LocalIndexType, GlobalIndexType>;
7071

7172
/**

include/ginkgo/core/distributed/vector_cache.hpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2017 - 2024 The Ginkgo authors
1+
// SPDX-FileCopyrightText: 2017 - 2025 The Ginkgo authors
22
//
33
// SPDX-License-Identifier: BSD-3-Clause
44

@@ -33,7 +33,8 @@ namespace detail {
3333
* not be copied when the outer object gets copied.
3434
*/
3535
template <typename ValueType>
36-
struct VectorCache {
36+
class VectorCache {
37+
public:
3738
VectorCache() = default;
3839
~VectorCache() = default;
3940
VectorCache(const VectorCache&) {}

include/ginkgo/core/matrix/dense.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2017 - 2024 The Ginkgo authors
1+
// SPDX-FileCopyrightText: 2017 - 2025 The Ginkgo authors
22
//
33
// SPDX-License-Identifier: BSD-3-Clause
44

0 commit comments

Comments
 (0)