Re: Creating thread in C++
On Jan 6, 8:55 pm, "Tom=C3=A1s =C3=93 h=C3=89ilidhe" <t...@lavabit.com> wrot=
e:
=?UTF-8?B?RXJpayBXaWtzdHLDtm0=?= <Erik-wikst...@telia.com> wrote in
comp.lang.c++:
Code is portable if it has been written with portability (the ability
to compile and run with little or no changes) in mind. It does not
imply that it must be compilable and runnable on every platform with a
C++ compiler.
I disagree. My own definition of portable is that the code
will compile and function as intended on every conceivable
implementation of the C++ Standard.
In other words, there's no such thing as portable code.
If you're assuming 8-Bit bytes, then it's not portable.
Portability isn't a yes/no question. There are different
degrees of portability. And unless you've actually compiled and
tested your code on a platform with bytes that aren't 8 bits,
it's not portable to a platform with bytes that aren't 8 bits.
--
James Kanze (GABI Software) mailto:james.kanze@gmail.com
Conseils en informatique orient=EF=BF=BDe objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=EF=BF=BDmard, 78210 St.-Cyr-l'=EF=BF=BDcole, France, +33 (0)1 30 2=
3 00 34