From b6a7dc05307dd4eff68feba6353b0d3f48d403c5 Mon Sep 17 00:00:00 2001 From: dellaert Date: Tue, 30 Dec 2014 18:32:03 +0100 Subject: [PATCH] Now print type along with value --- gtsam/base/GenericValue.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtsam/base/GenericValue.h b/gtsam/base/GenericValue.h index ad2ea05a2..c67f7dd61 100644 --- a/gtsam/base/GenericValue.h +++ b/gtsam/base/GenericValue.h @@ -27,6 +27,7 @@ #include #include +#include // operator typeid namespace gtsam { @@ -82,6 +83,7 @@ public: /// Virtual print function, uses traits virtual void print(const std::string& str) const { + std::cout << "(" << typeid(T).name() << ") "; traits::Print(value_, str); }