sl@0: // Copyright Peter Dimov and David Abrahams 2002. sl@0: // Distributed under the Boost Software License, Version 1.0. (See sl@0: // accompanying file LICENSE_1_0.txt or copy at sl@0: // http://www.boost.org/LICENSE_1_0.txt) sl@0: #ifndef GET_POINTER_DWA20021219_HPP sl@0: # define GET_POINTER_DWA20021219_HPP sl@0: sl@0: # include sl@0: sl@0: namespace boost { sl@0: sl@0: // get_pointer(p) extracts a ->* capable pointer from p sl@0: sl@0: template T * get_pointer(T * p) sl@0: { sl@0: return p; sl@0: } sl@0: sl@0: // get_pointer(shared_ptr const & p) has been moved to shared_ptr.hpp sl@0: sl@0: template T * get_pointer(std::auto_ptr const& p) sl@0: { sl@0: return p.get(); sl@0: } sl@0: sl@0: sl@0: } // namespace boost sl@0: sl@0: #endif // GET_POINTER_DWA20021219_HPP