minor fix

release/4.3a0
Varun Agrawal 2021-12-29 20:45:55 -05:00 committed by Frank Dellaert
parent f1dedca2b7
commit 1c76de40d1
1 changed files with 3 additions and 1 deletions

View File

@ -32,12 +32,14 @@ using namespace std;
using namespace gtsam;
template<typename T>
void DOT(const T&f, const string& filename) {
void write_dot(const T&f, const string& filename) {
#ifndef DISABLE_DOT
f.dot(filename);
#endif
}
#define DOT(x)(write_dot(x,#x))
struct Crazy { int a; double b; };
typedef DecisionTree<string,Crazy> CrazyDecisionTree; // check that DecisionTree is actually generic (as it pretends to be)