From a0535ef64dd42c9ec1ba19402b4a316972860f85 Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Thu, 15 Nov 2012 22:17:43 +0100 Subject: [PATCH] Fix compile errors for old gcc --- simgear/nasal/cppbind/Ghost.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simgear/nasal/cppbind/Ghost.hxx b/simgear/nasal/cppbind/Ghost.hxx index c679f644..300db250 100644 --- a/simgear/nasal/cppbind/Ghost.hxx +++ b/simgear/nasal/cppbind/Ghost.hxx @@ -517,19 +517,19 @@ namespace nasal // this ghost wraps. if( !boost::is_same < typename BaseGhost::raw_type, - Ghost::raw_type + typename Ghost::raw_type >::value && dynamic_cast(base) != base ) return 0; // Now check if we can further downcast to one of our derived classes. - naGhostType* ghost_type = 0; for( typename DerivedList::reverse_iterator derived = getSingletonPtr()->_derived_classes.rbegin(); derived != getSingletonPtr()->_derived_classes.rend(); ++derived ) { - ghost_type = (*derived)( static_cast(base) ); + naGhostType* ghost_type = + (*derived)( static_cast(base) ); if( ghost_type ) return ghost_type; } -- 2.39.5