[cfe-dev] Error when testing clang with VC++ RTL and Boost MPL

Richard legalize at xmission.com
Wed Nov 13 15:29:27 PST 2013


In article <l610fi$4sj$3 at ger.gmane.org>,
    Edward Diener <eldlistmailingz at tropicsoft.com> writes:

> Is not -1 in the range of an 'int' ?

Yes, but you didn't write -1 in your source file.

> Is not 0xffffffff equivalent to -1 
> as a signed value ?

No.  They are two different integer literals.

> What am I missing here ?

Read the mentioned section of the standard carefully.  I've read this
part and it isn't particularly confusing or difficult.

I even implemented the requirements of that section as part of a C++
source file tokenizer.
-- 
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
     The Computer Graphics Museum <http://ComputerGraphicsMuseum.org>
         The Terminals Wiki <http://terminals.classiccmp.org>
  Legalize Adulthood! (my blog) <http://LegalizeAdulthood.wordpress.com>



More information about the cfe-dev mailing list