forked from boostorg/type_traits
rvalue refs and msvc-10: add fix for is_function as well.
This commit is contained in:
30
include/boost/type_traits/detail/is_function_msvc10_fix.hpp
Normal file
30
include/boost/type_traits/detail/is_function_msvc10_fix.hpp
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
// (C) Copyright John Maddock 2018.
|
||||
// Use, modification and distribution are subject to 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).
|
||||
//
|
||||
// See http://www.boost.org/libs/type_traits for most recent version including documentation.
|
||||
|
||||
#ifndef BOOST_TT_IS_FUNCTION_MSVC10_FIX_HPP_INCLUDED
|
||||
#define BOOST_TT_IS_FUNCTION_MSVC10_FIX_HPP_INCLUDED
|
||||
|
||||
namespace boost {
|
||||
|
||||
template <class R> struct is_function<R(&&)()> : public false_type {};
|
||||
template <class R> struct is_function<R(&&)(...)> : public false_type {};
|
||||
template <class R, class Arg1> struct is_function<R(&&)(Arg1)> : public false_type {};
|
||||
template <class R, class Arg1> struct is_function<R(&&)(Arg1, ...)> : public false_type {};
|
||||
template <class R, class Arg1, class Arg2> struct is_function<R(&&)(Arg1, Arg2)> : public false_type {};
|
||||
template <class R, class Arg1, class Arg2> struct is_function<R(&&)(Arg1, Arg2, ...)> : public false_type {};
|
||||
template <class R, class Arg1, class Arg2, class Arg3> struct is_function<R(&&)(Arg1, Arg2, Arg3)> : public false_type {};
|
||||
template <class R, class Arg1, class Arg2, class Arg3> struct is_function<R(&&)(Arg1, Arg2, Arg3, ...)> : public false_type {};
|
||||
template <class R, class Arg1, class Arg2, class Arg3, class Arg4> struct is_function<R(&&)(Arg1, Arg2, Arg3, Arg4)> : public false_type {};
|
||||
template <class R, class Arg1, class Arg2, class Arg3, class Arg4> struct is_function<R(&&)(Arg1, Arg2, Arg3, Arg4, ...)> : public false_type {};
|
||||
template <class R, class Arg1, class Arg2, class Arg3, class Arg4, class Arg5> struct is_function<R(&&)(Arg1, Arg2, Arg3, Arg4, Arg5)> : public false_type {};
|
||||
template <class R, class Arg1, class Arg2, class Arg3, class Arg4, class Arg5> struct is_function<R(&&)(Arg1, Arg2, Arg3, Arg4, Arg5, ...)> : public false_type {};
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_TT_IS_REFERENCE_HPP_INCLUDED
|
||||
|
@@ -99,4 +99,8 @@ template <class T> struct is_function<T&&> : public false_type {};
|
||||
#endif
|
||||
} // namespace boost
|
||||
|
||||
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && defined(BOOST_MSVC) && BOOST_WORKAROUND(BOOST_MSVC, <= 1700)
|
||||
#include <boost/type_traits/detail/is_function_msvc10_fix.hpp>
|
||||
#endif
|
||||
|
||||
#endif // BOOST_TT_IS_FUNCTION_HPP_INCLUDED
|
||||
|
Reference in New Issue
Block a user