1 #ifndef BOOST_SERIALIZATION_DETAIL_IS_DEFAULT_CONSTRUCTIBLE_HPP
2 #define BOOST_SERIALIZATION_DETAIL_IS_DEFAULT_CONSTRUCTIBLE_HPP
4 // MS compatible compilers support #pragma once
9 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
10 // is_default_constructible.hpp: serialization for loading stl collections
12 // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
13 // Use, modification and distribution is subject to the Boost Software
14 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
15 // http://www.boost.org/LICENSE_1_0.txt)
17 // See http://www.boost.org for updates, documentation, and revision history.
19 #include <boost/config.hpp>
21 #if defined(_LIBCPP_VERSION) && (_LIBCPP_VERSION >= 1101) \
22 || ! defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS)
23 #include <type_traits>
25 namespace serialization {
29 struct is_default_constructible : std::is_default_constructible<T> {};
35 #include <boost/type_traits/has_trivial_constructor.hpp>
37 namespace serialization {
41 struct is_default_constructible : boost::has_trivial_constructor<T> {};
48 #endif // BOOST_SERIALIZATION_DETAIL_IS_DEFAULT_CONSTRUCTIBLE_HPP