1
0
forked from boostorg/mp11

Boost.Config no longer defines BOOST_NO_CXX11_CONSTEXPR for VS2015u3

This commit is contained in:
Peter Dimov
2016-10-23 18:16:55 +03:00
parent b88bb0654b
commit 37f088a5bc
2 changed files with 29 additions and 4 deletions

View File

@@ -14,6 +14,7 @@
#include <boost/mp11/utility.hpp>
#include <boost/mp11/detail/mp_plus.hpp>
#include <boost/mp11/detail/mp_map_find.hpp>
#include <boost/mp11/detail/config.hpp>
#include <boost/integer_sequence.hpp>
#include <boost/config.hpp>
#include <boost/detail/workaround.hpp>
@@ -100,7 +101,7 @@ namespace detail
template<class L, class V> struct mp_count_impl;
#if !defined( BOOST_NO_CXX11_CONSTEXPR )
#if !defined( BOOST_MP11_NO_CONSTEXPR )
constexpr std::size_t cx_plus()
{
@@ -136,7 +137,7 @@ namespace detail
template<class L, template<class...> class P> struct mp_count_if_impl;
#if !defined( BOOST_NO_CXX11_CONSTEXPR )
#if !defined( BOOST_MP11_NO_CONSTEXPR )
template<template<class...> class L, class... T, template<class...> class P> struct mp_count_if_impl<L<T...>, P>
{
@@ -542,7 +543,7 @@ namespace detail
template<class L, class V> struct mp_find_index_impl;
#if !defined( BOOST_NO_CXX11_CONSTEXPR )
#if !defined( BOOST_MP11_NO_CONSTEXPR )
template<template<class...> class L, class V> struct mp_find_index_impl<L<>, V>
{
@@ -602,7 +603,7 @@ namespace detail
template<class L, template<class...> class P> struct mp_find_index_if_impl;
#if !defined( BOOST_NO_CXX11_CONSTEXPR )
#if !defined( BOOST_MP11_NO_CONSTEXPR )
template<template<class...> class L, template<class...> class P> struct mp_find_index_if_impl<L<>, P>
{

View File

@@ -0,0 +1,24 @@
#ifndef BOOST_MP11_DETAIL_CONFIG_HPP_INCLUDED
#define BOOST_MP11_DETAIL_CONFIG_HPP_INCLUDED
// Copyright 2016 Peter Dimov.
//
// Distributed under the Boost Software License, Version 1.0.
//
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
#include <boost/config.hpp>
#include <boost/detail/workaround.hpp>
#if defined( BOOST_NO_CXX11_CONSTEXPR )
# define BOOST_MP11_NO_CONSTEXPR
#elif defined( BOOST_MSVC ) && BOOST_WORKAROUND( BOOST_MSVC, <= 1900 )
# define BOOST_MP11_NO_CONSTEXPR
#endif
#endif // #ifndef BOOST_MP11_DETAIL_CONFIG_HPP_INCLUDED