]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/serialization/include/boost/serialization/detail/is_default_constructible.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / serialization / include / boost / serialization / detail / is_default_constructible.hpp
CommitLineData
7c673cae
FG
1#ifndef BOOST_SERIALIZATION_DETAIL_IS_DEFAULT_CONSTRUCTIBLE_HPP
2#define BOOST_SERIALIZATION_DETAIL_IS_DEFAULT_CONSTRUCTIBLE_HPP
3
4// MS compatible compilers support #pragma once
5#if defined(_MSC_VER)
6# pragma once
7#endif
8
9/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
10// is_default_constructible.hpp: serialization for loading stl collections
11//
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)
16
17// See http://www.boost.org for updates, documentation, and revision history.
18
19#include <boost/config.hpp>
20
21#if defined(_LIBCPP_VERSION) && (_LIBCPP_VERSION >= 1101) \
22|| ! defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS)
23 #include <type_traits>
24 namespace boost{
25 namespace serialization {
26 namespace detail {
27
28 template<typename T>
29 struct is_default_constructible : std::is_default_constructible<T> {};
30
31 } // detail
32 } // serializaition
33 } // boost
34#else
35 #include <boost/type_traits/has_trivial_constructor.hpp>
36 namespace boost{
37 namespace serialization {
38 namespace detail {
39
40 template<typename T>
41 struct is_default_constructible : boost::has_trivial_constructor<T> {};
42
43 } // detail
44 } // serializaition
45 } // boost
46#endif
47
48#endif // BOOST_SERIALIZATION_DETAIL_IS_DEFAULT_CONSTRUCTIBLE_HPP