]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/python/test/pointee.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / python / test / pointee.cpp
CommitLineData
7c673cae
FG
1// Copyright David Abrahams 2002.
2// Distributed under the Boost Software License, Version 1.0. (See
3// accompanying file LICENSE_1_0.txt or copy at
4// http://www.boost.org/LICENSE_1_0.txt)
5#include <boost/python/pointee.hpp>
b32b8144 6#include <boost/python/detail/type_traits.hpp>
7c673cae
FG
7#include <memory>
8#include <boost/shared_ptr.hpp>
9#include <boost/static_assert.hpp>
10
11struct A;
12
13int main()
14{
15 BOOST_STATIC_ASSERT(
b32b8144 16 (boost::python::detail::is_same<
7c673cae
FG
17 boost::python::pointee<std::auto_ptr<char**> >::type
18 , char**
19 >::value));
20
21 BOOST_STATIC_ASSERT(
b32b8144 22 (boost::python::detail::is_same<
7c673cae
FG
23 boost::python::pointee<boost::shared_ptr<A> >::type
24 , A>::value));
25
26#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
27 BOOST_STATIC_ASSERT(
b32b8144 28 (boost::python::detail::is_same<
7c673cae
FG
29 boost::python::pointee<char*>::type
30 , char
31 >::value));
32#endif
33 return 0;
34}