]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/python/test/result.cpp
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/detail/result.hpp>
6 #include <boost/type.hpp>
9 using boost::python::detail::result
;
12 void expect_int(type
<int>*) {}
13 void expect_string(type
<char*>*) {}
19 // Test the usage which works for functions, member functions, and data members
25 result((int(*)(char))0)
29 result((int(X::*)())0)
33 result((int(X::*)(char))0)
45 result((char*(*)(char))0)
49 result((char*(X::*)())0)
53 result((char*(X::*)(char))0)
57 result((char*(X::*))0)
60 // Show that we can use the general version that works for
67 result((int(*)(char))0,0)
71 result((int(X::*)())0,0)
75 result((int(X::*)(char))0,0)
79 result((int(X::*))0,0)
83 result(std::plus
<int>(),0)
87 result((char*(*)())0,0)
91 result((char*(*)(char))0,0)
95 result((char*(X::*)())0,0)
99 result((char*(X::*)(char))0,0)
103 result((char*(X::*))0,0)
107 result(std::plus
<char*>(),0)