]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/virtual-methods.hh
2003 -> 2004
[lilypond.git] / flower / include / virtual-methods.hh
index e5516d8e7008d38255126acca8066f19694709e2..6d4d84087941e3074c59775e00464d736d7de4c7 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the Flower Library
 
-  (c)  1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 
@@ -15,7 +15,7 @@
 #define classname(class_ptr)   demangle_classname (typeid (* (class_ptr)))
 
 const char *
-demangle_classname (type_info const &);
+demangle_classname (std::type_info const &);
 
 /**
 
@@ -28,17 +28,13 @@ demangle_classname (type_info const &);
    
  */
 
-// fix constness: gcc-2.95 is correct in defining
-//    typeof (*this)
-// in a const member function to be const
-
-#if 0
-#define VIRTUAL_COPY_CONS(base) \
-  virtual base *clone () const \
-  { \
-    return new typeof (*this) (*this); \
-  }
-#else
+/*
+  fix constness: gcc-2.95 is correct in defining
+  
+    typeof (*this)
+    
+  in a const member function to be const
+*/
 #define VIRTUAL_COPY_CONS(base) \
   virtual base* clone_const_helper () \
     { \
@@ -49,6 +45,6 @@ demangle_classname (type_info const &);
       base* urg = (base*)this; \
       return urg->clone_const_helper (); \
     }
-#endif 
+
 
 #endif /* VIRTUAL_METHODS_HH */