Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85648 - trunk/boost/test/impl
From: gennadiy.rozental_at_[hidden]
Date: 2013-09-11 00:42:13


Author: rogeeff
Date: 2013-09-11 00:42:13 EDT (Wed, 11 Sep 2013)
New Revision: 85648
URL: http://svn.boost.org/trac/boost/changeset/85648

Log:
do not set alloc number if 1

Text files modified:
   trunk/boost/test/impl/debug.ipp | 4 +++-
   1 files changed, 3 insertions(+), 1 deletions(-)

Modified: trunk/boost/test/impl/debug.ipp
==============================================================================
--- trunk/boost/test/impl/debug.ipp Tue Sep 10 21:21:57 2013 (r85647)
+++ trunk/boost/test/impl/debug.ipp 2013-09-11 00:42:13 EDT (Wed, 11 Sep 2013) (r85648)
@@ -958,7 +958,9 @@
     unit_test::ut_detail::ignore_unused_variable_warning( mem_alloc_order_num );
 
 #ifdef BOOST_MS_CRT_BASED_DEBUG
- _CrtSetBreakAlloc( mem_alloc_order_num );
+ // only set the value if one was supplied (do not use default used by UTF just as a indicator to enable leak detection)
+ if( mem_alloc_order_num > 1 )
+ _CrtSetBreakAlloc( mem_alloc_order_num );
 #endif // BOOST_MS_CRT_BASED_DEBUG
 }
 


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