Ian Collins said:
On 05/10/11 12:36 AM, Rainer Weikusat wrote:
[*] The third one was that I had written an 'open source'
802.1x implementation in C++ which was turned into 0xdeadbeef
because it relied on a particular g++ feature (the ability to
define string contants in headers) which was later removed
because the people working on the compiler reportedly couldn't
agree on a way to implement it.
So you're one of those annoying buggers who writes "portable" code
that only compiles with gcc.
By that time (2001), I simply wasn't aware that 'string constants'
defined in C++ headers were 'something special' compared to numeric
constants. In particlar, I didn't know that this required the compiler
to allocate space for the string literal somewhere in the object code
files it was supposed to generate. I simply took it for granted
because the feature had always been there. Also, I wasn't exactly in
the position to even contemplate to get access to a ANSI/ISO standards
document, rather in the position where I was happy during the time of
the month where I had the money to buy food without wandering all over
the city in order to collect deposit bottles first. And the program
even worked in Linux and NetBSD and compiled and ran (to the degree I
could test it) on Solaris 8 (IIRC). That's not something I would spend
any time on today: I use Linux, if you use something else, feel free
to port it yourself :->.