|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r60659 - trunk/boost/proto
From: eric_at_[hidden]
Date: 2010-03-16 18:35:41
Author: eric_niebler
Date: 2010-03-16 18:35:40 EDT (Tue, 16 Mar 2010)
New Revision: 60659
URL: http://svn.boost.org/trac/boost/changeset/60659
Log:
BOOST_PROTO_ASSERT_MATCHES should incur no runtime overhead
Text files modified:
trunk/boost/proto/debug.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/proto/debug.hpp
==============================================================================
--- trunk/boost/proto/debug.hpp (original)
+++ trunk/boost/proto/debug.hpp 2010-03-16 18:35:40 EDT (Tue, 16 Mar 2010)
@@ -224,7 +224,7 @@
/// \param Expr The Proto expression to check againts <tt>Grammar</tt>
/// \param Grammar The grammar used to validate Expr.
#define BOOST_PROTO_ASSERT_MATCHES(Expr, Grammar) \
- boost::proto::assert_matches<Grammar>(Expr)
+ (true ? (void)0 : boost::proto::assert_matches<Grammar>(Expr))
/// \brief Assert at compile time that a particular expression
/// does not match the specified grammar.
@@ -233,7 +233,7 @@
/// \param Expr The Proto expression to check againts <tt>Grammar</tt>
/// \param Grammar The grammar used to validate Expr.
#define BOOST_PROTO_ASSERT_MATCHES_NOT(Expr, Grammar) \
- boost::proto::assert_matches_not<Grammar>(Expr)
+ (true ? (void)0 : boost::proto::assert_matches_not<Grammar>(Expr))
}}
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