
On 16 November 2017 at 15:10, Peter Dimov via Boost <boost@lists.boost.org> wrote:
Stefan Seefeld wrote:
It looks like we falsely assume the compiler understands C++11 and thus use attempt to use std::integral_constant. Could it be that the conditional in https://github.com/boostorg/python/blob/develop/include/boost/python/detail/... is wrong ?
You should probably be checking BOOST_NO_CXX11_HDR_TYPE_TRAITS there unless you have a specific reason not to do so.
Yes, but I think the error is because it doesn't understand the C++11 type alias. Better to use: typedef std::integral_constant<bool, true> true_; typedef std::integral_constant<bool, false> false_; According to MSDN, std::integral_constant was in Visual Studio 2008, which is Visual C++ 9.