Now print type along with value
							parent
							
								
									ff61d92283
								
							
						
					
					
						commit
						b6a7dc0530
					
				|  | @ -27,6 +27,7 @@ | |||
| 
 | ||||
| #include <cmath> | ||||
| #include <iostream> | ||||
| #include <typeinfo> // 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<T>::Print(value_, str); | ||||
|   } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue