Mail Archives: djgpp/1998/05/16/16:16:06
Destination: "Paul Derbyshire" <pderbysh AT usa DOT net>
From: Gruber Gerhard
Group: comp.os.msdos.djgpp
Date: Fri, 15 May 1998 20:54:53 GMT:
>> Wait a minute. There a mechanism (used in 2.7.x) that allows the use of
>> templates (avoiding collisions because of multiple definitions) using some
>> #pragma definitions (I use it in my editor, I have a silly array template).
>Can
>> you explain what's wrong with it?
>
>It's a pragma! It's nonstandard as hell, and worse, you can't just wrap it in
>#ifdef DJGPP's, because you also have to use a totally nonstandard architecture
>of .h and .cc files. There's no way to use this pragma and get portable code
>even with conditional compilation out the wazoo. Nevermind this doesn't solve
It seesm you are wrong there. We are using this pragma and compile on HPUX,
AIX and Windows 32 bit with the same sorce basis. We encapsulated the pragma
with #ifdef GCC and it works quite fine with all thre compilers. On the unix
platforms we use gcc and under Windows we use Visual C++ so it works. Why
should it not?
--
Bye,
Gerhard
email: sparhawk AT eunet DOT at
g DOT gruber AT sis DOT co DOT at
Spelling corrections are appreciated.
- Raw text -