Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80357 - trunk/boost/xpressive
From: eric_at_[hidden]
Date: 2012-09-01 20:02:10


Author: eric_niebler
Date: 2012-09-01 20:02:09 EDT (Sat, 01 Sep 2012)
New Revision: 80357
URL: http://svn.boost.org/trac/boost/changeset/80357

Log:
work around strange msvc bug
Text files modified:
   trunk/boost/xpressive/regex_actions.hpp | 12 +++++-------
   1 files changed, 5 insertions(+), 7 deletions(-)

Modified: trunk/boost/xpressive/regex_actions.hpp
==============================================================================
--- trunk/boost/xpressive/regex_actions.hpp (original)
+++ trunk/boost/xpressive/regex_actions.hpp 2012-09-01 20:02:09 EDT (Sat, 01 Sep 2012)
@@ -173,14 +173,12 @@
 
             template<typename This, typename Cont, typename Idx>
             struct result<This(Cont &, Idx)>
+ : mpl::if_c<
+ is_const<Cont>::value
+ , typename Cont::const_reference
+ , typename Cont::reference
+ >
             {
- typedef typename Cont::reference type;
- };
-
- template<typename This, typename Cont, typename Idx>
- struct result<This(Cont const &, Idx)>
- {
- typedef typename Cont::const_reference type;
             };
 
             template<typename Cont, typename Idx>


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