Boost logo

Boost-Commit :

From: pdimov_at_[hidden]
Date: 2007-11-03 18:47:18


Author: pdimov
Date: 2007-11-03 18:47:17 EDT (Sat, 03 Nov 2007)
New Revision: 40731
URL: http://svn.boost.org/trac/boost/changeset/40731

Log:
Added a sentence with a brief explanation of the intended uses of BOOST_VERIFY.
Text files modified:
   trunk/libs/utility/assert.html | 16 +++++++++-------
   1 files changed, 9 insertions(+), 7 deletions(-)

Modified: trunk/libs/utility/assert.html
==============================================================================
--- trunk/libs/utility/assert.html (original)
+++ trunk/libs/utility/assert.html 2007-11-03 18:47:17 EDT (Sat, 03 Nov 2007)
@@ -47,13 +47,15 @@
                 <P>As is the case with <STRONG>&lt;cassert&gt;</STRONG>, <STRONG>&lt;boost/assert.hpp&gt;</STRONG>
                         can be included multiple times in a single translation unit. <STRONG>BOOST_ASSERT</STRONG>
                         will be redefined each time as specified above.</P>
- <p><STRONG>&lt;boost/assert.hpp&gt;</STRONG> also defines the macro <STRONG>BOOST_VERIFY</STRONG>.
- It has exactly the same behavior as <STRONG>BOOST_ASSERT</STRONG>, except
- that the expression that is passed to <STRONG>BOOST_VERIFY</STRONG> is always
- evaluated.</p>
+ <p><STRONG>&lt;boost/assert.hpp&gt;</STRONG> also defines the macro <STRONG>BOOST_VERIFY</STRONG>.
+ It has exactly the same behavior as <STRONG>BOOST_ASSERT</STRONG>, except that
+ the expression that is passed to <STRONG>BOOST_VERIFY</STRONG> is always
+ evaluated. This is useful when the asserted expression has desirable side
+ effects; it can also help suppress warnings about unused variables when the
+ only use of the variable is inside an assertion.</p>
                 <p><br>
- <small>Copyright © 2002, 2007 by Peter Dimov. Distributed under the Boost
- Software License, Version 1.0. See accompanying file <A href="../../LICENSE_1_0.txt">
- LICENSE_1_0.txt</A> or copy at http://www.boost.org/LICENSE_1_0.txt.</small></p>
+ <small>Copyright © 2002, 2007 by Peter Dimov. Distributed under the Boost Software
+ License, Version 1.0. See accompanying file LICENSE_1_0.txt
+ or copy at http://www.boost.org/LICENSE_1_0.txt.</small></p>
         </body>
 </html>


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