Re: locales and stl

2006-04-30 Thread Roger Leigh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] writes: > I am currently struggling with what appears to be a locale issue with > gcc 3.3.5 on Red Hat Enterprise Linux AS release 3 (Taroon) (kernel > 2.4.21-4.ELsmp). Specifically, when I compile my project with LANG and > LANGVAR

Re: warning about type-punned pointer

2006-04-30 Thread Ulrich Lauther
Thomas Maeder <[EMAIL PROTECTED]> wrote: : Ulrich Lauther <[EMAIL PROTECTED]> writes: : > inline bool almost_equal(float a, float b, int maxUlps = 16) { : > if (a == b) return true; : > int intDiff = abs(*(reinterpret_cast(&a)) - : > *(reinterpret_cast(&b))); : > return intD