Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-31 09:56:56

0001 /* Copyright 2016-2017 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/poly_collection for library home page.
0007  */
0008 
0009 #ifndef BOOST_POLY_COLLECTION_DETAIL_IS_CONSTRUCIBLE_HPP
0010 #define BOOST_POLY_COLLECTION_DETAIL_IS_CONSTRUCIBLE_HPP
0011 
0012 #if defined(_MSC_VER)
0013 #pragma once
0014 #endif
0015 
0016 #include <boost/config.hpp>
0017 #include <boost/detail/workaround.hpp>
0018 
0019 #if BOOST_WORKAROUND(BOOST_MSVC_FULL_VER,<190023918)
0020 /* https://connect.microsoft.com/VisualStudio/Feedback/Details/2118677,
0021  * fixed in VS2015U2 according to
0022  * https://blogs.msdn.microsoft.com/vcblog/2016/03/31/
0023  * visual-c-2015-update-2-bug-fixes/, via github.com/dodheim
0024  */
0025 
0026 #include <boost/type_traits/is_constructible.hpp>
0027 
0028 namespace boost{
0029 
0030 namespace poly_collection{
0031 
0032 namespace detail{
0033 
0034 template<typename T,typename... Args>
0035 struct is_constructible:std::integral_constant<
0036   bool,
0037   boost::is_constructible<T,Args...>::value
0038 >{};
0039 
0040 } /* namespace poly_collection::detail */
0041 
0042 } /* namespace poly_collection */
0043 
0044 } /* namespace boost */
0045 
0046 #else
0047 #include <type_traits>
0048 
0049 namespace boost{
0050 
0051 namespace poly_collection{
0052 
0053 namespace detail{
0054 
0055 template<typename T,typename... Args>
0056 using is_constructible=std::is_constructible<T,Args...>;
0057 
0058 } /* namespace poly_collection::detail */
0059 
0060 } /* namespace poly_collection */
0061 
0062 } /* namespace boost */
0063 
0064 #endif
0065 #endif