Skip to content

smtk/common/TypeName.h is missing header include

smtk/common/TypeName.h fails to compile with error error: must #include <typeinfo> before using typeid

Simply adding

#include <typeinfo>

to TypeName.h resolves the issue.

--- smtk-release/smtk/common/TypeName.h	2018-07-16 12:41:32.6881
82101 -0500
+++ smtk/smtk/common/TypeName.h	
2018-07-16 14:38:33.487083640 -0500
@@ -12,6 +12,7 @@
 #define smtk_common_TypeName_h
 
 #include <string>
+#include <typeinfo>
 
 namespace smtk
 {

Thanks,

Corey

Edited by chart3388