Boost logo

Boost-Commit :

From: john.groups_at_[hidden]
Date: 2008-01-11 05:26:44


Author: jtorjo
Date: 2008-01-11 05:26:43 EST (Fri, 11 Jan 2008)
New Revision: 42675
URL: http://svn.boost.org/trac/boost/changeset/42675

Log:
[logging]
- fixed bug in basic_usage - needed to turn off cache
Text files modified:
   sandbox/logging/lib/logging/internal/vc8/loggingvc8/test_now.cpp | 4 ++++
   sandbox/logging/lib/logging/samples/basic_usage/log.cpp | 1 +
   2 files changed, 5 insertions(+), 0 deletions(-)

Modified: sandbox/logging/lib/logging/internal/vc8/loggingvc8/test_now.cpp
==============================================================================
--- sandbox/logging/lib/logging/internal/vc8/loggingvc8/test_now.cpp (original)
+++ sandbox/logging/lib/logging/internal/vc8/loggingvc8/test_now.cpp 2008-01-11 05:26:43 EST (Fri, 11 Jan 2008)
@@ -92,6 +92,10 @@
     // Step 8: use it...
     int i = 1;
 
+ switch ( i) {
+ case 0:L_ << "this is so cool " << i++; break;
+ case 1:L_ << "this is so cool " << i++; break;
+ }
     L_ << "this is so cool " << i++;
   // L_ << "this is so cool again " << i++;
     // Step 9 : Enjoy!

Modified: sandbox/logging/lib/logging/samples/basic_usage/log.cpp
==============================================================================
--- sandbox/logging/lib/logging/samples/basic_usage/log.cpp (original)
+++ sandbox/logging/lib/logging/samples/basic_usage/log.cpp 2008-01-11 05:26:43 EST (Fri, 11 Jan 2008)
@@ -21,4 +21,5 @@
     g_l->writer().add_destination( destination::cout() );
     g_l->writer().add_destination( destination::dbg_window() );
     g_l->writer().add_destination( destination::file("out.txt") );
+ g_l->turn_cache_off();
 }


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