2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-26 06:42:27 +00:00

Make Dereferenceable use get_pointer

Re-enable map_indexing_suite iteration for vc6.


[SVN r21008]
This commit is contained in:
Dave Abrahams
2003-11-29 22:12:18 +00:00
parent dd7a24ebce
commit e9519db974
6 changed files with 41 additions and 16 deletions

View File

@@ -9,6 +9,7 @@
# ifndef POINTER_HOLDER_DWA20011215_HPP
# define POINTER_HOLDER_DWA20011215_HPP
# include <boost/get_pointer.hpp>
# include <boost/type.hpp>
# include <boost/python/instance_holder.hpp>
@@ -34,7 +35,7 @@ namespace boost { namespace python { namespace objects {
template <class T>
bool is_null(T const& p, ...)
{
return p.get() == 0;
return get_pointer(p) == 0;
}
template <class T>