Boost logo

Boost :

Subject: Re: [boost] Clang 4.0.0 MPL error in Boost next.hpp and prior.hpp
From: Peter Dimov (lists_at_[hidden])
Date: 2017-03-26 11:38:39


> > Edward Diener wrote:
> >
> > > I have updated Boost PP on the develop branch to support
> > > the -fno-ms-compatibility mode of clang targeting VC++ or clang/C2.
> >
> > ...failed updating 1 target...
> > ...skipped 2 targets...
> > ...updated 133 targets...
>
> For reference, results in -fms-compatibility:
>
> ...failed updating 45 targets...
> ...skipped 46 targets...
> ...updated 45 targets...
>
> And same, but using the strict config here as well:
>
> ...failed updating 2 targets...
> ...skipped 3 targets...
> ...updated 131 targets...

LLVM 4.0.0 Clang (using clang-linux toolset), -fno-ms-compatibility:

...failed updating 1 target...
...skipped 3 targets...
...updated 262 targets...

The failure is because you pass -std=c++0x, but MS's headers indirectly
included by config_info use C++14 features. Should work with -std=c++14.

-fms-compatibility (using the strict config, as patched):

...failed updating 1 target...
...skipped 3 targets...
...updated 132 targets...

This one doesn't even fail seq.cpp, was probably a bug they fixed.

No idea why you couldn't get it to work, all I did was install LLVM in
C:\LLVM and then added

using clang : 4.0 :
  "C:/LLVM/bin/clang.exe" :
  <compileflags>-fno-ms-compatibility ;

in user-config.jam. I probably don't even need the <compileflags>, it works
either way.


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