99
1010# include < boost/python/extract.hpp>
1111# include < boost/scoped_ptr.hpp>
12- # include < boost/detail/binary_search.hpp>
1312# include < boost/get_pointer.hpp>
13+ # include < boost/detail/binary_search.hpp>
1414# include < vector>
1515# include < map>
1616
@@ -366,9 +366,9 @@ namespace boost { namespace python { namespace detail {
366366 }
367367
368368 container_element (container_element const & ce)
369- : ptr(ce.ptr.get() == 0 ? 0 : new element_type(*ce.ptr.get()))
370- , container(ce.container)
371- , index(ce.index)
369+ : ptr(ce.ptr.get() == 0 ? 0 : new element_type(*ce.ptr.get()))
370+ , container(ce.container)
371+ , index(ce.index)
372372 {
373373 }
374374
@@ -381,14 +381,14 @@ namespace boost { namespace python { namespace detail {
381381 element_type& operator *() const
382382 {
383383 if (is_detached ())
384- return *ptr. get ( );
384+ return *get_pointer (ptr );
385385 return Policies::get_item (get_container (), index);
386386 }
387387
388388 element_type* get () const
389389 {
390390 if (is_detached ())
391- return ptr. get ( );
391+ return get_pointer (ptr );
392392 return &Policies::get_item (get_container (), index);
393393 }
394394
@@ -407,7 +407,7 @@ namespace boost { namespace python { namespace detail {
407407 bool
408408 is_detached () const
409409 {
410- return ptr. get ( ) != 0 ;
410+ return get_pointer (ptr ) != 0 ;
411411 }
412412
413413 Container&
@@ -690,7 +690,9 @@ namespace boost { namespace python { namespace detail {
690690 }
691691 };
692692
693- }} // namespace python::detail
693+ #ifdef BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
694+ }} // namespace python::detail
695+ #endif
694696
695697 template <class Container , class Index , class Policies >
696698 inline typename Policies::data_type*
@@ -701,6 +703,11 @@ namespace boost { namespace python { namespace detail {
701703 return p.get ();
702704 }
703705
706+ #ifdef BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
707+ namespace python { namespace detail {
708+ #endif
709+
710+ }} // namespace python::detail
704711} // namespace boost
705712
706713#endif // INDEXING_SUITE_DETAIL_JDG20036_HPP
0 commit comments