Skip to content
Snippets Groups Projects
Commit 3b9efd57 authored by Stefan Roiser's avatar Stefan Roiser
Browse files

include type definition

git-svn-id: http://root.cern.ch/svn/root/trunk@15613 27541ba8-7e3a-0410-8455-c3a389f83636
parent 30fabf57
Branches
Tags
No related merge requests found
// @(#)root/reflex:$Name: $:$Id: ScopeName.cxx,v 1.10 2006/03/20 09:46:18 roiser Exp $
// @(#)root/reflex:$Name: $:$Id: ScopeName.cxx,v 1.11 2006/06/29 14:35:40 roiser Exp $
// Author: Stefan Roiser 2004
// Copyright CERN, CH-1211 Geneva 23, 2004-2006, All rights reserved.
......@@ -17,6 +17,7 @@
#include "Reflex/Scope.h"
#include "Reflex/ScopeBase.h"
#include "Reflex/Type.h"
#include "Reflex/Tools.h"
......@@ -74,6 +75,7 @@ ROOT::Reflex::Scope ROOT::Reflex::ScopeName::ByName( const std::string & name )
if (it != sScopes().end() ) return Scope( it->second );
//else return Scope();
// HERE STARTS AN UGLY HACK WHICH HAS TO BE UNDONE ASAP
// (also remove inlcude Reflex/Type.h)
Type t = Type::ByName("name");
if ( t && t.IsTypedef()) {
while ( t.IsTypedef()) t = t.ToType();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment