Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:42:07

0001 /* Copyright 2003-2019 Joaquin M Lopez Munoz.
0002  * Distributed under the Boost Software License, Version 1.0.
0003  * (See accompanying file LICENSE_1_0.txt or copy at
0004  * http://www.boost.org/LICENSE_1_0.txt)
0005  *
0006  * See http://www.boost.org/libs/multi_index for library home page.
0007  */
0008 
0009 #ifndef BOOST_MULTI_INDEX_DETAIL_IS_FUNCTION_HPP
0010 #define BOOST_MULTI_INDEX_DETAIL_IS_FUNCTION_HPP
0011 
0012 #if defined(_MSC_VER)
0013 #pragma once
0014 #endif
0015 
0016 #include <boost/config.hpp> /* keep it first to prevent nasty warns in MSVC */
0017 #include <boost/detail/workaround.hpp>
0018 
0019 #if !defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS)||\
0020     BOOST_WORKAROUND(_LIBCPP_VERSION,<30700)||\
0021     BOOST_WORKAROUND(BOOST_LIBSTDCXX_VERSION,<40802)
0022 /* libc++: std::is_function<void() const> fails,
0023  * https://bugs.llvm.org/show_bug.cgi?id=20084
0024  *
0025  * libstdc++-v3: std::is_function does not support ref-qualified function types,
0026  * https://github.com/gcc-mirror/gcc/commit/
0027  *   2fa630fb50ba29d8e891c52a75aaec261b07874e#
0028  *   diff-6547f965a8d66bf35a6388fcf404aaa3
0029  */
0030 
0031 #include <boost/type_traits/is_function.hpp>
0032 
0033 namespace boost{namespace multi_index{namespace detail{
0034 
0035 template<typename T>
0036 struct is_function:boost::is_function<T>{};
0037 
0038 }}} /* namespace boost::multi_index::detail */
0039 
0040 #else
0041 
0042 #include <type_traits>
0043 
0044 namespace boost{namespace multi_index{namespace detail{
0045 
0046 template<typename T>
0047 struct is_function:std::is_function<T>{};
0048 
0049 }}} /* namespace boost::multi_index::detail */
0050 
0051 #endif
0052 #endif