Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50603 - trunk/boost/proto/detail
From: eric_at_[hidden]
Date: 2009-01-15 00:32:35


Author: eric_niebler
Date: 2009-01-15 00:32:33 EST (Thu, 15 Jan 2009)
New Revision: 50603
URL: http://svn.boost.org/trac/boost/changeset/50603

Log:
work-around for msvc overload resolution bug
Text files modified:
   trunk/boost/proto/detail/decltype.hpp | 8 +++++++-
   1 files changed, 7 insertions(+), 1 deletions(-)

Modified: trunk/boost/proto/detail/decltype.hpp
==============================================================================
--- trunk/boost/proto/detail/decltype.hpp (original)
+++ trunk/boost/proto/detail/decltype.hpp 2009-01-15 00:32:33 EST (Thu, 15 Jan 2009)
@@ -11,6 +11,7 @@
 
 #include <boost/proto/detail/prefix.hpp> // must be first include
 #include <boost/config.hpp>
+#include <boost/detail/workaround.hpp>
 #include <boost/get_pointer.hpp>
 #include <boost/preprocessor/cat.hpp>
 #include <boost/preprocessor/repetition/enum_params.hpp>
@@ -157,7 +158,12 @@
           : T
         {
             using T::operator[];
- any operator[](any) const volatile;
+
+ #if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1500))
+ any operator[](any const volatile &) const volatile;
+ #else
+ any operator[](any const &) const volatile;
+ #endif
         };
 
         ////////////////////////////////////////////////////////////////////////////////////////////


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