From 0af26a5bb263f3f514070979e3e86cc4fde0e833 Mon Sep 17 00:00:00 2001
From: Florent Lamiraux <florent@laas.fr>
Date: Tue, 22 Mar 2011 16:31:15 +0100
Subject: [PATCH] Make getClassName method const

  This virtual methods is defined in Entity class. Changing the prototype
  breaks the overloading mecanism.
---
 include/dynamic-graph/tracer-real-time.h | 2 +-
 include/dynamic-graph/tracer.h           | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/include/dynamic-graph/tracer-real-time.h b/include/dynamic-graph/tracer-real-time.h
index 2a4939ba..19966a9e 100644
--- a/include/dynamic-graph/tracer-real-time.h
+++ b/include/dynamic-graph/tracer-real-time.h
@@ -54,7 +54,7 @@ namespace dynamicgraph
   {
   public:
     static const std::string CLASS_NAME;
-    virtual const std::string& getClassName ()
+    virtual const std::string& getClassName  () const
     {
       return CLASS_NAME;
     }
diff --git a/include/dynamic-graph/tracer.h b/include/dynamic-graph/tracer.h
index 486526f7..041563f8 100644
--- a/include/dynamic-graph/tracer.h
+++ b/include/dynamic-graph/tracer.h
@@ -43,7 +43,10 @@ namespace dynamicgraph
 
   public:
     static const std::string CLASS_NAME;
-    virtual const std::string& getClassName  () { return CLASS_NAME; }
+    virtual const std::string& getClassName () const
+    {
+      return CLASS_NAME;
+    }
 
   public:
     enum TraceStyle
-- 
GitLab