|
From: <cn...@us...> - 2009-08-11 02:01:17
|
Revision: 470
http://hgengine.svn.sourceforge.net/hgengine/?rev=470&view=rev
Author: cnlohr
Date: 2009-08-11 02:01:09 +0000 (Tue, 11 Aug 2009)
Log Message:
-----------
fix - must have virtual function for getting type... otherwise we don't look at the vtable.
Modified Paths:
--------------
Mercury2/src/MercuryNode.h
Modified: Mercury2/src/MercuryNode.h
===================================================================
--- Mercury2/src/MercuryNode.h 2009-08-10 00:49:35 UTC (rev 469)
+++ Mercury2/src/MercuryNode.h 2009-08-11 02:01:09 UTC (rev 470)
@@ -19,7 +19,7 @@
{ if (n==NULL) return NULL; return dynamic_cast<const x*>(n); } \
static x* Cast(MercuryNode* n) \
{ if (n==NULL) return NULL; return dynamic_cast<x*>(n); } \
-static const char * GetType() { return #x; }
+virtual const char * GetType() { return #x; }
/*
#define GENRTTI(x) static bool IsMyType(const MercuryNode* n) \
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|