Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50474 - in trunk/boost/test: impl utils/runtime/cla
From: gennadiy.rozental_at_[hidden]
Date: 2009-01-04 22:30:50


Author: rogeeff
Date: 2009-01-04 22:30:50 EST (Sun, 04 Jan 2009)
New Revision: 50474
URL: http://svn.boost.org/trac/boost/changeset/50474

Log:
weird cygwin glitch work around
treat incorrect parameter as missing
Text files modified:
   trunk/boost/test/impl/framework.ipp | 4 ++++
   trunk/boost/test/utils/runtime/cla/parser.ipp | 4 +---
   2 files changed, 5 insertions(+), 3 deletions(-)

Modified: trunk/boost/test/impl/framework.ipp
==============================================================================
--- trunk/boost/test/impl/framework.ipp (original)
+++ trunk/boost/test/impl/framework.ipp 2009-01-04 22:30:50 EST (Sun, 04 Jan 2009)
@@ -219,7 +219,11 @@
 
 namespace {
 
+#if defined(__CYGWIN__)
+framework_impl& s_frk_impl() { static framework_impl* the_inst = 0; if(!the_inst) the_inst = new framework_impl; return *the_inst; }
+#else
 framework_impl& s_frk_impl() { static framework_impl the_inst; return the_inst; }
+#endif
 
 } // local namespace
 

Modified: trunk/boost/test/utils/runtime/cla/parser.ipp
==============================================================================
--- trunk/boost/test/utils/runtime/cla/parser.ipp (original)
+++ trunk/boost/test/utils/runtime/cla/parser.ipp 2009-01-04 22:30:50 EST (Sun, 04 Jan 2009)
@@ -175,9 +175,7 @@
         }
     }
 
- BOOST_RT_PARAM_VALIDATE_LOGIC( found_param, BOOST_RT_PARAM_LITERAL( "Unknown parameter: " ) << string_id );
-
- return found_param->actual_argument();
+ return found_param ? found_param->actual_argument() : const_argument_ptr();
 }
 
 //____________________________________________________________________________//


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