|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r59870 - in sandbox/statistics/detail/assign: boost/assign/auto_size/detail libs/assign/doc libs/assign/src libs/assign/test
From: erwann.rogard_at_[hidden]
Date: 2010-02-24 10:40:08
Author: e_r
Date: 2010-02-24 10:40:06 EST (Wed, 24 Feb 2010)
New Revision: 59870
URL: http://svn.boost.org/trac/boost/changeset/59870
Log:
m
Text files modified:
sandbox/statistics/detail/assign/boost/assign/auto_size/detail/assign_refence_copy.hpp | 2 --
sandbox/statistics/detail/assign/boost/assign/auto_size/detail/auto_size.hpp | 8 +++++---
sandbox/statistics/detail/assign/libs/assign/doc/cref_list_of2_speed.txt | 26 +++++++++++++-------------
sandbox/statistics/detail/assign/libs/assign/src/main.cpp | 3 ++-
sandbox/statistics/detail/assign/libs/assign/test/cref_list_of2_speed.cpp | 12 ++++++------
5 files changed, 26 insertions(+), 25 deletions(-)
Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/detail/assign_refence_copy.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/detail/assign_refence_copy.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/detail/assign_refence_copy.hpp 2010-02-24 10:40:06 EST (Wed, 24 Feb 2010)
@@ -42,8 +42,6 @@
std::swap( *ref_, *r.ref_ );
}
- // destructor?
-
T& get_ref() const
{
return *ref_;
Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/detail/auto_size.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/detail/auto_size.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/detail/auto_size.hpp 2010-02-24 10:40:06 EST (Wed, 24 Feb 2010)
@@ -30,6 +30,8 @@
// with M.P.G
//
// Revision history:
+// Feb 21, 2010 : made member variables mutable and added constness unless
+// necessary to member functions.
// Feb 9, 2010 :
// - Added a template parameter for the reference_wrapper
// - The temporary array in the conversion operator is now assigned by calling
@@ -80,9 +82,6 @@
typedef typename boost::mpl::if_<is_first_,E,E&>::type previous_;
typedef typename ref_array<T,N,Ref>::type ref_array_;
typedef typename next<E,T,N,Ref>::type next_;
-
- mutable previous_ previous;
- mutable ref_ ref;
expr(T& t):ref(t){} // only for N == 1
expr(E& p,T& t):previous(p),ref(t){}
@@ -149,6 +148,9 @@
return !(this->size());
}
+ mutable previous_ previous;
+ mutable ref_ ref;
+
private:
void alloc()const{
Modified: sandbox/statistics/detail/assign/libs/assign/doc/cref_list_of2_speed.txt
==============================================================================
--- sandbox/statistics/detail/assign/libs/assign/doc/cref_list_of2_speed.txt (original)
+++ sandbox/statistics/detail/assign/libs/assign/doc/cref_list_of2_speed.txt 2010-02-24 10:40:06 EST (Wed, 24 Feb 2010)
@@ -1,26 +1,26 @@
Output from cref_list_of2_speed.h for n = 1000 * 1000
-Mac OS Leopard 10.6 - x86_64 - Release mode - gcc 4.0
+Mac OS Leopard 10.6 - x86_64 - Release mode - gcc 4.2
-cref_list_of2(1) => 0.01 s
+cref_copy_list_of(1) => 0.01 s
-cref_list_of(1) => 0.01 s
+cref_list_of<>(1) => 0.01 s
-cref_list_of2(3) => 0.03 s
+cref_copy_list_of(3) => 0.03 s
-cref_list_of(3) => 0.01 s
+cref_list_of<>(3) => 0.01 s
-cref_list_of2(10) => 0.09 s
+cref_copy_list_of(10) => 0.09 s
-cref_list_of(10) => 0.05 s
+cref_list_of<>(10) => 0.05 s
-cref_list_of2(30) => 0.29 s
+cref_copy_list_of(30) => 0.30 s
-cref_list_of(30) => 0.21 s
+cref_list_of<>(30) => 0.22 s
-cref_list_of2(80) => 0.86 s
+cref_copy_list_of(80) => 0.87 s
-cref_list_of(80) => 0.47 s
+cref_list_of<>(80) => 0.49 s
-cref_list_of2(160) => 1.94 s
+cref_copy_list_of(160) => 2.05 s
-cref_list_of(160) => 0.92 s
+cref_list_of<>(160) => 0.97 s
\ No newline at end of file
Modified: sandbox/statistics/detail/assign/libs/assign/src/main.cpp
==============================================================================
--- sandbox/statistics/detail/assign/libs/assign/src/main.cpp (original)
+++ sandbox/statistics/detail/assign/libs/assign/src/main.cpp 2010-02-24 10:40:06 EST (Wed, 24 Feb 2010)
@@ -1,12 +1,13 @@
#include <iostream>
#include <libs/assign/example/cref_list_of2.h>
#include <libs/assign/test/cref_list_of2_speed.h>
-#include <libs/assign/test/static_list_of_auto_size.h>
+//#include <libs/assign/test/static_list_of_auto_size.h>
int main (int argc, char * const argv[]) {
example_cref_list_of(std::cout);
test_cref_copy_list_of_speed(std::cout);
+// check_static_list_of_auto_size();
return 0;
Modified: sandbox/statistics/detail/assign/libs/assign/test/cref_list_of2_speed.cpp
==============================================================================
--- sandbox/statistics/detail/assign/libs/assign/test/cref_list_of2_speed.cpp (original)
+++ sandbox/statistics/detail/assign/libs/assign/test/cref_list_of2_speed.cpp 2010-02-24 10:40:06 EST (Wed, 24 Feb 2010)
@@ -74,7 +74,7 @@
if(sz != N)
os << "ERROR\n";
}
- os << "cref_copy_list_of(" << N << ") => ";
+ os << "cref_list_of<>(" << N << ") => ";
}
}
{
@@ -100,7 +100,7 @@
if(sz != N)
os << "ERROR\n";
}
- os << "cref_copy_list_of(" << N << ") => ";
+ os << "cref_list_of<>(" << N << ") => ";
}
}
@@ -127,7 +127,7 @@
if(sz != N)
os << "ERROR\n";
}
- os << "cref_copy_list_of(" << N << ") => ";
+ os << "cref_list_of<>(" << N << ") => ";
}
}
@@ -158,7 +158,7 @@
if(sz != N)
os << "ERROR\n";
}
- os << "cref_copy_list_of(" << N << ") => ";
+ os << "cref_list_of<>(" << N << ") => ";
}
}
@@ -199,7 +199,7 @@
if(sz != N)
os << "ERROR\n";
}
- os << "cref_copy_list_of(" << N << ") => ";
+ os << "cref_list_of<>(" << N << ") => ";
}
}
@@ -256,7 +256,7 @@
if(sz != N)
os << "ERROR\n";
}
- os << "cref_copy_list_of(" << N << ") => ";
+ os << "cref_list_of<>(" << N << ") => ";
}
}
os << "<- " << std::endl;
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