RE: [ROOT] Again: namespaces and dictionaries

From: Philippe Canal (pcanal@fnal.gov)
Date: Fri Jun 08 2001 - 23:44:21 MEST


Hi Axel,

> The ClassDef/Imp macros look like this:
> 	namespace d0nau{
> 	...
> 	ClassDef( TEventSample, 1 )
> 	...
> 	};

> 	using namespace d0nau;
> 	ClassImp( TEventSample )

> This doesn't help:
> 	ClassImp( d0nau::TEventSample )
> 	using namespace d0nau;
> nor does this:
> 	ClassImp2( d0nau, TEventSample )
> 	using namespace d0nau;

The correct way is :

using namescape d0nau {
	ClassImp(d0nau);
};

However ... this is broken in the latest release.

Philippe.

PS. a quick non-tested fix is:

cvs diff TCint.cxx
Index: TCint.cxx
===================================================================
RCS file: /user/cvs/root/meta/src/TCint.cxx,v
retrieving revision 1.23
diff -r1.23 TCint.cxx
446c446
<       if (strstr(cl->GetName(),"::")) return;
---
>      //      if (strstr(cl->GetName(),"::")) return;



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:49 MET