On Thu, Jun 3, 2010 at 2:23 PM, Nelson, Erik - 2 <
[email protected]> wrote:

> Fernando Pelliccioni wrote:
> > It is not a bug. The following code compiles well on MSVC 9 (Visual
> Studio 2008)
> > You just have to include <ciso646>
>
> It is a bug- 'and', 'not', etc. are reserved words in C++, and MSVC9 is
> nonconformant when it #defines them as preprocessor macros.  It cause
> troubles lots of places, not just here.
>
>
>
It is true, there are reserved words

This is from the Current Standard ISO/IEC 14882:2003(E)

---
*Furthermore, the alternative representations shown in Table 4 for certain
operators and punctuators (2.5) are
reserved and shall not be used otherwise:

Table 4—alternative representations
__ ______________________________________________________
and and_eq bitand bitor compl not
not_eq or or_eq xor xor_eq
_ _______________________________________________________ *

---


But the example I sent compiles and works!

Regards,
Fernando.







> Here's a link that discusses it further.
>
> http://books.google.com/books?id=Q4iP1mkfdtsC&pg=PT398&lpg=PT398&dq=ciso
> 646&source=bl&ots=wYn89ESX6p&sig=YJ9ZKxHVhGctK3_ruaAEuHYnRnM&hl=en&ei=q-
> MHTLCWGYWclgesspWADw&sa=X&oi=book_result&ct=result&resnum=8&ved=0CDoQ6AE
> wBw#v=onepage&q=ciso646&f=false<http://books.google.com/books?id=Q4iP1mkfdtsC&pg=PT398&lpg=PT398&dq=ciso%0A646&source=bl&ots=wYn89ESX6p&sig=YJ9ZKxHVhGctK3_ruaAEuHYnRnM&hl=en&ei=q-%0AMHTLCWGYWclgesspWADw&sa=X&oi=book_result&ct=result&resnum=8&ved=0CDoQ6AE%0AwBw#v=onepage&q=ciso646&f=false>
>
> Erik
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Cpp-netlib-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cpp-netlib-devel
>
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Cpp-netlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cpp-netlib-devel

Reply via email to