23 #ifndef LUABIND_HAS_GET_POINTER_051022_HPP 24 # define LUABIND_HAS_GET_POINTER_051022_HPP 26 # include <boost/type_traits/add_reference.hpp> 28 # ifndef BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP 32 namespace luabind {
namespace detail {
34 namespace has_get_pointer_
39 template<
class T>
any(T
const&);
45 typedef char (&yes)[1];
46 typedef char (&no)[2];
55 # ifndef BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP 58 T* get_pointer(T
const volatile*);
61 T* get_pointer(std::auto_ptr<T>
const&);
69 # ifdef BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP 76 # ifdef BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP 77 namespace detail {
namespace has_get_pointer_
88 static typename boost::add_reference<T>::type x;
90 BOOST_STATIC_CONSTANT(
bool,
91 value =
sizeof(has_get_pointer_::check( (get_pointer(x),0) )) == 1
94 typedef boost::mpl::bool_<value> type;
106 #endif // LUABIND_HAS_GET_POINTER_051022_HPP Definition: has_get_pointer.hpp:86
Definition: has_get_pointer.hpp:100
Definition: has_get_pointer.hpp:42
Definition: PEtypes.h:507
Definition: enum_maker.hpp:46
Definition: has_get_pointer.hpp:37