Skip to content

Commit 2dea084

Browse files
committed
copy constructor added to be explicit as needed by C++17 and later
1 parent 87c83e8 commit 2dea084

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

include/CXXGraph/Partitioning/Utility/Globals.hpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,20 @@ class Globals {
3838
const unsigned int threads = std::thread::hardware_concurrency());
3939
~Globals();
4040

41+
Globals& operator=(const Globals& that) {
42+
numberOfPartition = that.numberOfPartition; // number of partitions
43+
partitionStategy = that.partitionStategy;
44+
threads = that.threads;
45+
param1 = that.param1;
46+
param2 = that.param2;
47+
param3 = that.param3;
48+
49+
edgeCardinality = that.edgeCardinality;
50+
vertexCardinality = that.vertexCardinality;
51+
edgeAnalyzed = that.edgeAnalyzed;
52+
return *this;
53+
}
54+
4155
const std::string print() const;
4256

4357
// CONSTANT

0 commit comments

Comments
 (0)