forked from boostorg/mp11
Boost.Config no longer defines BOOST_NO_CXX11_CONSTEXPR for VS2015u3
This commit is contained in:
@@ -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>
|
||||
{
|
||||
|
24
include/boost/mp11/detail/config.hpp
Normal file
24
include/boost/mp11/detail/config.hpp
Normal 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
|
Reference in New Issue
Block a user