Boost logo

Boost :

Subject: Re: [boost] the 'not' keyword
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-10-02 17:05:03


on Sun Oct 02 2011, Lorenzo Caminiti <lorcaminiti-AT-gmail.com> wrote:

> Hello all,
>
> This might not be a "pure" Boost question but do you know if compilers
> portably support the 'not' keyword?

Yes they do... or they used to.

> int main ( ) {
> if(not false) return 0;
> return 1;
> }
>
> This compiles on GCC but not on MSVC... Why? If you look at the C++
> standard, it says that 'not' is part of the language...

Huh; I don't know.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk