Boost logo

Boost :

Subject: [boost] Using Boost with VS 14.0 update 3 RC and Clang 3.8.0 (from CodeBlocks IDE) compile fails in MS type_traits is_assignable
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2016-06-15 05:47:09

I am trying to check a program that compiles on VS with 14.0 update 3 RC and on Codeblocks IDE GCC 5.3 compile OK, but CodeBlocks
Clang 3.8.0 fails:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\type_traits:524:45: error: '_To' does not refer to a value
                : integral_constant<bool, __is_assignable(_To, _From)>

I:\modular-boost\boost\mpl\aux_\preprocessed\plain\or.hpp|58|error: pasting formed 'BOOST_PP_TUPLE_ELEM_O_3(', an invalid
preprocessing token [-Winvalid-token-paste]

and terminally many more.

clang++.exe -Wall -std=c++14 -m64 -fexceptions -O4 -m64 -std=c++14 -fms-extensions -Wall -m64 -fms-compatibility-version=19.00
-II:\modular-boost -c J:\Cpp\hellos\fixed_point_constexpr\fixed_point_constexpr.cpp -o obj\Release\fixed_point_constexpr.o

I see some discussion of similar problem on!topic/boost-list/MvqaK4SDy_c

and a possible apparent fix on

Any suggestions for working around this problem?


PS I may try to use a *nix platform for this.

Paul A. Bristow
Prizet Farmhouse
Kendal UK LA8 8AB
+44 (0) 1539 561830

Boost list run by bdawes at, gregod at, cpdaniel at, john at