Boost logo

Boost Users :

Subject: Re: [Boost-users] Using Boost.Geometry with Clang/LLVM & VC14
From: Adam Wulkiewicz (adam.wulkiewicz_at_[hidden])
Date: 2016-03-14 22:51:33


Hi,

Degski wrote:
> GGL does not compile with the combo of Clang/LLVM
> (http://llvm.org/builds/) and VC14 out of the box. There seem to be
> comflicts in the resolution of old MSVC bugs and Clang. On windows
> __clang__ is defined at the same time as _MSVC_VER.
>
<snip>
>
> I've run into similar problems before (cannot remember where) with
> other boost libraries (which I hacked in other ways).
>
> Clang/LLVM with MSVC (and the IDE) works extremely well for a while
> now. The advantages of Clang/LLVM are well known, no need to spell
> them out It produces far faster code (almost twice as fast on simple
> matrix multiplication f.e.. It also gives the best of two worlds as it
> supports Clang and GCC extensions on Windows (calculated goto), while
> maintaining (although with a suppressable warning) M$ extensions as
> well, f.e. in-class template specialization.
>
> Clang/LLVM (3.9.0 as it stands) is much faster than Clang/CL2
> (CodeGen) (3.7.0).
>
> I would herewith like to request the development team to integrate
> Clang/LLVM on Windows as another supported platform.

I'm curious, what problems exactly did you face and when?

Is that correct that in this setup (MSVS + Clang) BOOST_CLANG is defined
and BOOST_MSVC is NOT defined?

Regards,
Adam


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net