Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58556 - trunk/boost/test/impl
From: gennadiy.rozental_at_[hidden]
Date: 2009-12-29 01:50:38


Author: rogeeff
Date: 2009-12-29 01:50:37 EST (Tue, 29 Dec 2009)
New Revision: 58556
URL: http://svn.boost.org/trac/boost/changeset/58556

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

Modified: trunk/boost/test/impl/test_tools.ipp
==============================================================================
--- trunk/boost/test/impl/test_tools.ipp (original)
+++ trunk/boost/test/impl/test_tools.ipp 2009-12-29 01:50:37 EST (Tue, 29 Dec 2009)
@@ -198,8 +198,13 @@
     }
 
     case CHECK_PRED_WITH_ARGS: {
- va_list args_copy = args;
+ va_list args_copy;
 
+#if BOOST_WORKAROUND(BOOST_MSVC, <=1500)
+ args_copy = args;
+#else
+ va_copy( args_copy, args );
+#endif
         os << prefix << assertion_descr;
 
         // print predicate call description


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