|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r66239 - sandbox/function/boost/function
From: dsaritz_at_[hidden]
Date: 2010-10-28 15:18:20
Author: psiha
Date: 2010-10-28 15:18:17 EDT (Thu, 28 Oct 2010)
New Revision: 66239
URL: http://svn.boost.org/trac/boost/changeset/66239
Log:
Fixed const&nonconst-reference-to-function overload compilation error on GCC 4.2.1.
Text files modified:
sandbox/function/boost/function/function_base.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: sandbox/function/boost/function/function_base.hpp
==============================================================================
--- sandbox/function/boost/function/function_base.hpp (original)
+++ sandbox/function/boost/function/function_base.hpp 2010-10-28 15:18:17 EDT (Thu, 28 Oct 2010)
@@ -185,8 +185,8 @@
template <class Other>
bool operator==( fallocator<Other> const & ) const { return true; }
- static pointer address( reference value ) { return boost::addressof( value ); }
- static const_pointer address( const_reference value ) { return boost::addressof( value ); }
+ template <typename T>
+ static T * address( T & value ) { return boost::addressof( value ); }
pointer allocate ( size_type const count, void const * /*p_hint*/ ) { return allocate( count ); }
pointer allocate ( size_type const count ) { return static_cast<pointer>( ::operator new( count * sizeof( T ) ) ); }
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk