Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77816 - trunk/boost/local_function/aux_
From: lorcaminiti_at_[hidden]
Date: 2012-04-07 11:53:28


Author: lcaminiti
Date: 2012-04-07 11:53:27 EDT (Sat, 07 Apr 2012)
New Revision: 77816
URL: http://svn.boost.org/trac/boost/changeset/77816

Log:
Removed T const[*/&] function template specializations that caused ambiguity on VACPP.
Text files modified:
   trunk/boost/local_function/aux_/member.hpp | 6 ++----
   1 files changed, 2 insertions(+), 4 deletions(-)

Modified: trunk/boost/local_function/aux_/member.hpp
==============================================================================
--- trunk/boost/local_function/aux_/member.hpp (original)
+++ trunk/boost/local_function/aux_/member.hpp 2012-04-07 11:53:27 EDT (Sat, 07 Apr 2012)
@@ -37,15 +37,13 @@
     typedef T const* pointer;
 };
 
+// NOTE: Do not add specializations for T const[&/*] (ambiguous on VACPP).
 template<typename T> T* member_addr(T& data) { return &data; }
-template<typename T> T const* member_addr(T const& data) { return &data; }
 template<typename T> T* member_addr(T* data) { return data; }
-template<typename T> T const* member_addr(T const* data) { return data; }
 
+// NOTE: Do not add specializations for T const[&/*] (ambiguous on VACPP).
 template<typename T> T& member_deref(T& data) { return data; }
-template<typename T> T const& member_deref(T const& data) { return data; }
 template<typename T> T& member_deref(T* data) { return *data; }
-template<typename T> T const& member_deref(T const* data) { return *data; }
 
 } } } // namespace
 


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