|
Boost-Commit : |
From: fmhess_at_[hidden]
Date: 2008-03-21 15:19:25
Author: fmhess
Date: 2008-03-21 15:19:25 EDT (Fri, 21 Mar 2008)
New Revision: 43766
URL: http://svn.boost.org/trac/boost/changeset/43766
Log:
Worked around compilation error in boost::get_deleter when using old versions
of g++.
Text files modified:
trunk/boost/shared_ptr.hpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
Modified: trunk/boost/shared_ptr.hpp
==============================================================================
--- trunk/boost/shared_ptr.hpp (original)
+++ trunk/boost/shared_ptr.hpp 2008-03-21 15:19:25 EDT (Fri, 21 Mar 2008)
@@ -663,7 +663,9 @@
if(del == 0)
{
detail::sp_deleter_wrapper *del_wrapper = detail::basic_get_deleter<detail::sp_deleter_wrapper>(p);
- if(del_wrapper) del = del_wrapper->get_deleter<D>();
+// The following get_deleter method call is fully qualified because
+// older versions of gcc (2.95, 3.2.3) fail to compile it when written del_wrapper->get_deleter<D>()
+ if(del_wrapper) del = del_wrapper->::boost::detail::sp_deleter_wrapper::get_deleter<D>();
}
return del;
}
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