Boost logo

Boost :

Subject: Re: [boost] Clang 4.0.0 MPL error in Boost next.hpp and prior.hpp
From: degski (degski_at_[hidden])
Date: 2017-03-27 12:01:01


Just noticed the following, compiling:

#if __cplusplus >= 201103L
    #error This library uses a C++11 compliant compiler
#else
    #error This library will benefit from a C++11 compliant compiler
#endif

Compiling this with VC14, update 3, (options, a.o.) /std:c++latest, the
second line is generated as an error. Compiling this with Clang/LLVM
(option a.o.) -std=c++1y results in the first error being produced.

It is this bug
https://connect.microsoft.com/VisualStudio/feedback/details/763051/a-value-of-predefined-macro-cplusplus-is-still-199711l

A value of predefined macro __cplusplus is still 199711L - by Barfy
Status : Closed as Deferred

Maybe relevant in the context of this thread?

degski


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