Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78141 - trunk/boost/proto
From: eric_at_[hidden]
Date: 2012-04-22 13:26:28


Author: eric_niebler
Date: 2012-04-22 13:26:27 EDT (Sun, 22 Apr 2012)
New Revision: 78141
URL: http://svn.boost.org/trac/boost/changeset/78141

Log:
c++11, force parameter to mpl::if_c to be bool
Text files modified:
   trunk/boost/proto/matches.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/proto/matches.hpp
==============================================================================
--- trunk/boost/proto/matches.hpp (original)
+++ trunk/boost/proto/matches.hpp 2012-04-22 13:26:27 EDT (Sun, 22 Apr 2012)
@@ -704,7 +704,7 @@
 
             typedef
                 typename mpl::if_c<
- remove_reference<condition>::type::value
+ static_cast<bool>(remove_reference<condition>::type::value)
                   , when<_, Then>
                   , when<_, Else>
>::type


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