diff options
Diffstat (limited to 'boost/poly_collection/detail/is_constructible.hpp')
-rw-r--r-- | boost/poly_collection/detail/is_constructible.hpp | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/boost/poly_collection/detail/is_constructible.hpp b/boost/poly_collection/detail/is_constructible.hpp new file mode 100644 index 0000000000..5770fab537 --- /dev/null +++ b/boost/poly_collection/detail/is_constructible.hpp @@ -0,0 +1,61 @@ +/* Copyright 2016-2017 Joaquin M Lopez Munoz. + * 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) + * + * See http://www.boost.org/libs/poly_collection for library home page. + */ + +#ifndef BOOST_POLY_COLLECTION_DETAIL_IS_CONSTRUCIBLE_HPP +#define BOOST_POLY_COLLECTION_DETAIL_IS_CONSTRUCIBLE_HPP + +#if defined(_MSC_VER) +#pragma once +#endif + +#include <boost/config.hpp> +#include <boost/detail/workaround.hpp> + +#if BOOST_WORKAROUND(BOOST_MSVC,BOOST_TESTED_AT(1900)) +/* https://connect.microsoft.com/VisualStudio/Feedback/Details/2118677 */ + +#include <boost/type_traits/is_constructible.hpp> + +namespace boost{ + +namespace poly_collection{ + +namespace detail{ + +template<typename T,typename... Args> +struct is_constructible:std::integral_constant< + bool, + boost::is_constructible<T,Args...>::value +>{}; + +} /* namespace poly_collection::detail */ + +} /* namespace poly_collection */ + +} /* namespace boost */ + +#else +#include <type_traits> + +namespace boost{ + +namespace poly_collection{ + +namespace detail{ + +template<typename T,typename... Args> +using is_constructible=std::is_constructible<T,Args...>; + +} /* namespace poly_collection::detail */ + +} /* namespace poly_collection */ + +} /* namespace boost */ + +#endif +#endif |