Boost logo

Boost Users :

Subject: Re: [Boost-users] [geometry][typeof][type_traits] Using Boost with Clang/LLVM & VC14
From: Marcel Raad (raad_at_[hidden])
Date: 2016-03-15 14:15:10


Adam Wulkiewicz wrote
> Boost.TypeTraits
>
> 1>D:\lib\modular-boost\boost/type_traits/has_nothrow_assign.hpp(64,7):
> error : no template named 'is_assignable'; did you mean
> 'std::is_assignable'?
> 1> BOOST_HAS_NOTHROW_ASSIGN(T)
> 1> ^
> 1> D:\lib\modular-boost\boost/type_traits/intrinsics.hpp(199,96) :
> note: expanded from macro 'BOOST_HAS_NOTHROW_ASSIGN'
> 1> # define BOOST_HAS_NOTHROW_ASSIGN(T) (__has_nothrow_assign(T) &&
> !is_volatile
> <T>
> ::value && is_assignable&lt;T&amp;, const T&amp;&gt;::value)
> 1> ^
> 1> C:\Program Files (x86)\Microsoft Visual Studio
> 14.0\VC\include\type_traits(577,9) : note: 'std::is_assignable'
> declared here
> 1> struct is_assignable
> 1> ^
>
> 1>D:\lib\modular-boost\boost/type_traits/has_nothrow_constructor.hpp(26,84):
> error : no template named 'is_default_constructible'; did you mean
> 'std::is_default_constructible'?
> 1> template
> <class T>
> struct has_nothrow_constructor : public
> integral_constant&lt;bool, BOOST_HAS_NOTHROW_CONSTRUCTOR(T)&gt;{};
> 1> ^
> 1> D:\lib\modular-boost\boost/type_traits/intrinsics.hpp(193,80) :
> note: expanded from macro 'BOOST_HAS_NOTHROW_CONSTRUCTOR'
> 1> # define BOOST_HAS_NOTHROW_CONSTRUCTOR(T)
> (__has_nothrow_constructor(T) && is_default_constructible
> <T>
> ::value)
> 1> ^
> 1> C:\Program Files (x86)\Microsoft Visual Studio
> 14.0\VC\include\type_traits(539,9) : note:
> 'std::is_default_constructible' declared here
> 1> struct is_default_constructible
> 1> ^
>
> I'm guessing that more type traits suffer from this.

That should be fixed with https://github.com/boostorg/type_traits/pull/24.

--
View this message in context: http://boost.2283326.n4.nabble.com/Using-Boost-Geometry-with-Clang-LLVM-VC14-tp4684564p4684617.html
Sent from the Boost - Users mailing list archive at Nabble.com.

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