Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58702 - trunk/boost/test/impl
From: gennadiy.rozental_at_[hidden]
Date: 2010-01-05 04:56:29


Author: rogeeff
Date: 2010-01-05 04:56:28 EST (Tue, 05 Jan 2010)
New Revision: 58702
URL: http://svn.boost.org/trac/boost/changeset/58702

Log:
use ifdef va_copy
Text files modified:
   trunk/boost/test/impl/test_tools.ipp | 10 +++++++---
   1 files changed, 7 insertions(+), 3 deletions(-)

Modified: trunk/boost/test/impl/test_tools.ipp
==============================================================================
--- trunk/boost/test/impl/test_tools.ipp (original)
+++ trunk/boost/test/impl/test_tools.ipp 2010-01-05 04:56:28 EST (Tue, 05 Jan 2010)
@@ -200,10 +200,10 @@
     case CHECK_PRED_WITH_ARGS: {
         va_list args_copy;
 
-#if BOOST_WORKAROUND(BOOST_MSVC, <=1500)
- args_copy = args;
-#else
+#ifdef va_copy
         va_copy( args_copy, args );
+#else
+ args_copy = args;
 #endif
         os << prefix << assertion_descr;
 
@@ -231,6 +231,10 @@
             }
             os << " )";
         }
+
+#ifdef va_copy
+ va_end( args_copy );
+#endif
        
         if( !pr.has_empty_message() )
             os << ". " << pr.message();


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