|
Last change
on this file since 47 was
29,
checked in by landauf, 17 years ago
|
|
updated boost from 1_33_1 to 1_34_1
|
|
File size:
914 bytes
|
| Line | |
|---|
| 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> |
|---|
| 6 | #include <boost/type_traits/same_traits.hpp> |
|---|
| 7 | #include <memory> |
|---|
| 8 | #include <boost/shared_ptr.hpp> |
|---|
| 9 | #include <boost/static_assert.hpp> |
|---|
| 10 | |
|---|
| 11 | struct A; |
|---|
| 12 | |
|---|
| 13 | int main() |
|---|
| 14 | { |
|---|
| 15 | BOOST_STATIC_ASSERT( |
|---|
| 16 | (boost::is_same< |
|---|
| 17 | boost::python::pointee<std::auto_ptr<char**> >::type |
|---|
| 18 | , char** |
|---|
| 19 | >::value)); |
|---|
| 20 | |
|---|
| 21 | BOOST_STATIC_ASSERT( |
|---|
| 22 | (boost::is_same< |
|---|
| 23 | boost::python::pointee<boost::shared_ptr<A> >::type |
|---|
| 24 | , A>::value)); |
|---|
| 25 | |
|---|
| 26 | #ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION |
|---|
| 27 | BOOST_STATIC_ASSERT( |
|---|
| 28 | (boost::is_same< |
|---|
| 29 | boost::python::pointee<char*>::type |
|---|
| 30 | , char |
|---|
| 31 | >::value)); |
|---|
| 32 | #endif |
|---|
| 33 | return 0; |
|---|
| 34 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.