From 272559c3be58b3bbf9fe22dc1425e05e4c3b009d Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sun, 30 Nov 2003 21:10:15 +0000 Subject: [PATCH] correct get_pointer usage [SVN r21017] --- .../boost/python/suite/indexing/element_proxy.hpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/include/boost/python/suite/indexing/element_proxy.hpp b/include/boost/python/suite/indexing/element_proxy.hpp index 97aa0fd4..bc3c8fb5 100755 --- a/include/boost/python/suite/indexing/element_proxy.hpp +++ b/include/boost/python/suite/indexing/element_proxy.hpp @@ -157,16 +157,23 @@ namespace boost { namespace python { namespace indexing { size_t use_count() const { return m_ptr.use_count(); } // For debugging }; -} } } -namespace boost -{ +#ifdef BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP +}} // namespace python::indexing +#endif + template typename ContainerProxy::raw_value_type * get_pointer (python::indexing::element_proxy const &proxy) { return &(*proxy); } + +#ifndef BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP + // Don't hide these other get_pointer overloads + using boost::python::get_pointer; +}} // namespace python::indexing +#endif } #endif // BOOST_PYTHON_INDEXING_ELEMENT_PROXY_HPP