[luabind-cvs] luabind/luabind/luabind get_pointer.hpp,1.1.2.1,1.1.2.2
Brought to you by:
arvidn,
daniel_wallin
From: Daniel W. <dan...@us...> - 2005-10-23 21:47:35
|
Update of /cvsroot/luabind/luabind/luabind/luabind In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26408 Modified Files: Tag: beta7-devel2 get_pointer.hpp Log Message: Fix for VC6/7. Index: get_pointer.hpp =================================================================== RCS file: /cvsroot/luabind/luabind/luabind/luabind/Attic/get_pointer.hpp,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -d -r1.1.2.1 -r1.1.2.2 --- get_pointer.hpp 23 Oct 2005 21:37:16 -0000 1.1.2.1 +++ get_pointer.hpp 23 Oct 2005 21:47:27 -0000 1.1.2.2 @@ -24,28 +24,14 @@ # define LUABIND_GET_POINTER_051023_HPP // -// This is essentially just boost/get_pointer.hpp, but we need these -// in the luabind namespace. +// We need these overloads in the luabind namespace. // -// Copyright Peter Dimov and David Abrahams 2002. -// Distributed under the Boost Software License, Version 1.0. (See -// accompanying file LICENSE_1_0.txt or copy at -// http://www.boost.org/LICENSE_1_0.txt) +# include <boost/get_pointer.hpp> namespace luabind { -template<class T> -T* get_pointer(T* p) -{ - return p; -} - -template<class T> -T* get_pointer(std::auto_ptr<T> const& p) -{ - return p.get(); -} +using boost::get_pointer; } // namespace luabind |