Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72237 - sandbox/block_ptr/libs/smart_ptr/example
From: phil_at_[hidden]
Date: 2011-05-27 18:42:00


Author: pbouchard
Date: 2011-05-27 18:41:59 EDT (Fri, 27 May 2011)
New Revision: 72237
URL: http://svn.boost.org/trac/boost/changeset/72237

Log:
* Median fix
Text files modified:
   sandbox/block_ptr/libs/smart_ptr/example/benchmark.cpp | 12 ++++++------
   1 files changed, 6 insertions(+), 6 deletions(-)

Modified: sandbox/block_ptr/libs/smart_ptr/example/benchmark.cpp
==============================================================================
--- sandbox/block_ptr/libs/smart_ptr/example/benchmark.cpp (original)
+++ sandbox/block_ptr/libs/smart_ptr/example/benchmark.cpp 2011-05-27 18:41:59 EDT (Fri, 27 May 2011)
@@ -77,9 +77,9 @@
         }
         
         cout << "make:" << endl;
- cout << "auto_ptr:\t" << setw(numeric_limits<long>::digits10 + 2) << median[n/2+1][0] << " ns" << endl;
- cout << "shared_ptr:\t" << setw(numeric_limits<long>::digits10 + 2) << median[n/2+1][1] << " ns" << endl;
- cout << "block_ptr:\t" << setw(numeric_limits<long>::digits10 + 2) << median[n/2+1][2] << " ns" << endl;
+ cout << "auto_ptr:\t" << setw(numeric_limits<long>::digits10 + 2) << median[n/2][0] << " ns" << endl;
+ cout << "shared_ptr:\t" << setw(numeric_limits<long>::digits10 + 2) << median[n/2][1] << " ns" << endl;
+ cout << "block_ptr:\t" << setw(numeric_limits<long>::digits10 + 2) << median[n/2][2] << " ns" << endl;
         cout << endl;
         
         for (int i = 0; i < n; ++ i)
@@ -101,9 +101,9 @@
         }
 
         cout << "new:" << endl;
- cout << "auto_ptr:\t" << setw(numeric_limits<long>::digits10 + 2) << median[n/2+1][0] << " ns" << endl;
- cout << "shared_ptr:\t" << setw(numeric_limits<long>::digits10 + 2) << median[n/2+1][1] << " ns" << endl;
- cout << "block_ptr:\t" << setw(numeric_limits<long>::digits10 + 2) << median[n/2+1][2] << " ns" << endl;
+ cout << "auto_ptr:\t" << setw(numeric_limits<long>::digits10 + 2) << median[n/2][0] << " ns" << endl;
+ cout << "shared_ptr:\t" << setw(numeric_limits<long>::digits10 + 2) << median[n/2][1] << " ns" << endl;
+ cout << "block_ptr:\t" << setw(numeric_limits<long>::digits10 + 2) << median[n/2][2] << " ns" << endl;
         cout << endl;
         
     return 0;


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