diff --git a/cpp/DSF.h b/cpp/DSF.h index 82b9bb4d0..8c12b6b1b 100644 --- a/cpp/DSF.h +++ b/cpp/DSF.h @@ -11,6 +11,7 @@ #pragma once +#include #include #include #include @@ -22,7 +23,7 @@ namespace gtsam { class Symbol; template - class DSF : BTree { + class DSF : protected BTree { public: typedef Key Label; // label can be different from key, but for now they are same @@ -126,7 +127,7 @@ namespace gtsam { std::cout << (std::string)pair.first << " " << (std::string)pair.second << std::endl; } - private: + protected: /** * same as findSet except with path compression: After we have traversed the path to