Re: [PATCH] 2nd patch Re: [Jade/OpenJade] g++ 2.95 C++ portability problems

Subject: Re: [PATCH] 2nd patch Re: [Jade/OpenJade] g++ 2.95 C++ portability problems
From: Matthias Clasen <clasen@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 16 Aug 1999 20:40:13 +0200
> 
> Included is a patch to jade (not OpenJade, but I assume it's similar)
> which fixes said problems for g++ 2.95.  My patches here are a far cry
> from optimal.
> 

> In some cases, such as
> 
>    __instantiate(Vector<size_t>)
>    __instantiate(Vector<unsigned int>)
> 
> we need to know if size_t really == unsigned int.  There's no way I
> know of to know that using CPP macros.
> 
> I guess this sorta stuff is known issues with C++, see the info pages
> under Template Instantiation for details.  I guess we might be able to
> work around better by frobbing switches such as -frepo and
> -fno-implicit-templates.
> 
> All I can say is, WFM (works for me). YMMV.

It seems to work for CVS OpenJade as well (I can't say for sure, since
I first had to install gcc-2.95 and now it is still compiling, but
it already build libsp successfully).

But the patch fails if unsigned int != size_t, doesn't it ?
The CVS version of OpenJade needs more fixes for gcc-2.95 anyway. 
Here is another untested idea: Wouldn't it be enough to move the
potential duplicates to different files to avoid the conflict ?

-- 
Matthias Clasen, 
Tel. 0761/203-5606
Email: clasen@xxxxxxxxxxxxxxxxxxxxxxxxxx
Mathematisches Institut, Albert-Ludwigs-Universitaet Freiburg


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread