drop boost::signals2 and replace with carl's solution which continues to rely on...
[ardour.git] / libs / pbd / pbd / demangle.h
index adace5d46f62e4f156b062e372052ac15fe9dd46..aecd966f47503210f6ccdb5c067629364981a9fe 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <string>
 #include <cstdlib>
+#include <typeinfo>
 
 #ifdef __GNUC__
 #include <cxxabi.h>
@@ -41,6 +42,12 @@ namespace PBD
                        return s;
                }
 #endif
+
+                /* Note: on win32, you can use UnDecorateSymbolName.
+                   See http://msdn.microsoft.com/en-us/library/ms681400%28VS.85%29.aspx
+                   See also: http://msdn.microsoft.com/en-us/library/ms680344%28VS.85%29.aspx
+                */
+                
                return typeid(obj).name();
        }
 } // namespace