[pooma-dev] RFA: Vector.h: s/iosfwd/ios/

Jeffrey Oldham oldham at codesourcery.com
Fri May 25 02:01:38 UTC 2001


On Thu, May 24, 2001 at 06:57:06PM -0700, Julian Cummings wrote:
> Maybe I am doing something wrong or just going crazy,
> but I cannot verify this patch.  Every compiler that I have
> tried so far (SGI CC 7.3.1.1m, KCC 4.0a, gcc 2.95.2) does
> the same thing when I try to compile CartesianTest1.  They
> all give errors in DomainTraits.int.h, saying that you cannot
> specialize a class template after its first use.  They are pointing
> to the various specializations of DomainTraits for the C
> built-in integral types.  What I cannot figure out is where the
> DomainTraits template is used previously that would cause
> this error.  It looks to me like DomainTraits.int.h just includes
> DomainTraits.h and then defines the specializations.

I am working on resolving this problem in a way that Jim Crotinger
will accept.  Attached is an unacceptable patch that solved the
problem for me.

> Is anyone else experiencing this problem with any compiler,
> including the ones I have mentioned?  I am working with the
> head version of r2 from the repository.  Help!!

Thanks,
Jeffrey D. Oldham
oldham at codesourcery.com
-------------- next part --------------
Index: NewDomain.h
===================================================================
RCS file: /home/pooma/Repository/r2/src/Domain/NewDomain.h,v
retrieving revision 1.30
diff -c -p -r1.30 NewDomain.h
*** NewDomain.h	2001/04/13 02:12:59	1.30
--- NewDomain.h	2001/05/23 22:50:43
***************
*** 60,65 ****
--- 60,66 ----
  //-----------------------------------------------------------------------------
  
  #include "Domain/DomainTraits.h"
+ #include "Domain/DomainTraits.int.h"
  #include "Utilities/PAssert.h"
  
  //-----------------------------------------------------------------------------


More information about the pooma-dev mailing list