2 // Copyright 2017-2019 Peter Dimov.
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
8 #ifndef BOOST_GIL_DETAIL_TYPE_TRAITS_HPP
9 #define BOOST_GIL_DETAIL_TYPE_TRAITS_HPP
11 #include <boost/config.hpp>
13 #include <type_traits>
15 namespace boost { namespace gil { namespace detail {
17 #if defined(BOOST_LIBSTDCXX_VERSION) && BOOST_LIBSTDCXX_VERSION < 50100
20 struct is_trivially_default_constructible
21 : std::integral_constant
24 std::is_default_constructible<T>::value &&
25 std::has_trivial_default_constructor<T>::value
31 using std::is_trivially_default_constructible;
35 using std::is_trivially_destructible;
37 }}} //namespace boost::gil::detail