]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/gil/detail/type_traits.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / gil / detail / type_traits.hpp
1 //
2 // Copyright 2017-2019 Peter Dimov.
3 //
4 // Distributed under the Boost Software License, Version 1.0
5 // See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt
7 //
8 #ifndef BOOST_GIL_DETAIL_TYPE_TRAITS_HPP
9 #define BOOST_GIL_DETAIL_TYPE_TRAITS_HPP
10
11 #include <boost/config.hpp>
12
13 #include <type_traits>
14
15 namespace boost { namespace gil { namespace detail {
16
17 #if defined(BOOST_LIBSTDCXX_VERSION) && BOOST_LIBSTDCXX_VERSION < 50100
18
19 template<class T>
20 struct is_trivially_default_constructible
21 : std::integral_constant
22 <
23 bool,
24 std::is_default_constructible<T>::value &&
25 std::has_trivial_default_constructor<T>::value
26 >
27 {};
28
29 #else
30
31 using std::is_trivially_default_constructible;
32
33 #endif
34
35 using std::is_trivially_destructible;
36
37 }}} //namespace boost::gil::detail
38
39 #endif