Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60039 - in sandbox/statistics/detail/assign: boost/assign/auto_size/array libs/assign/test
From: erwann.rogard_at_[hidden]
Date: 2010-03-01 11:07:05


Author: e_r
Date: 2010-03-01 11:07:04 EST (Mon, 01 Mar 2010)
New Revision: 60039
URL: http://svn.boost.org/trac/boost/changeset/60039

Log:
m
Added:
   sandbox/statistics/detail/assign/boost/assign/auto_size/array/ref.hpp (contents, props changed)
Text files modified:
   sandbox/statistics/detail/assign/boost/assign/auto_size/array/interface.hpp | 6 +-----
   sandbox/statistics/detail/assign/boost/assign/auto_size/array/policy.hpp | 5 +----
   sandbox/statistics/detail/assign/libs/assign/test/speed_common.cpp | 1 +
   3 files changed, 3 insertions(+), 9 deletions(-)

Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/array/interface.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/array/interface.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/array/interface.hpp 2010-03-01 11:07:04 EST (Mon, 01 Mar 2010)
@@ -13,17 +13,13 @@
 #include <boost/array.hpp>
 #include <boost/range.hpp>
 #include <boost/assign/auto_size/detail/has_copy_semantics.hpp>
+#include <boost/assign/auto_size/array/ref.hpp>
 
 namespace boost{
 namespace assign{
 namespace detail{
 namespace auto_size{
                    
- template<typename T,int N,template<typename> class Ref>
- struct ref_array{
- typedef boost::array<typename Ref<T>::type,N> type;
- };
-
     // Used as a base class of D, adds the array interface and a conversion
     // operator to any data-structure constructible from a pair of iterators.
     // Let d an instance of D. Requirements:

Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/array/policy.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/array/policy.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/array/policy.hpp 2010-03-01 11:07:04 EST (Mon, 01 Mar 2010)
@@ -11,6 +11,7 @@
 #include <boost/shared_ptr.hpp>
 #include <boost/assign/auto_size/array/interface.hpp>
 #include <boost/assign/auto_size/array/wrapper.hpp>
+#include <boost/assign/auto_size/array/ref.hpp>
 
 namespace boost{
 namespace assign{
@@ -22,14 +23,10 @@
>
     class expr;
 
- template<typename T,int N,template<typename> class Ref>
- struct ref_array;
-
     template<typename A,typename E,typename T,int N,
             template<typename> class Ref,typename P>
     void write_to_array(A& a,const expr<E,T,N,Ref,P>& e);
                   
-
    // Policy for auto_size::expr that exposes an array interface
    template<typename T,int N,template<typename> class Ref,typename D>
            class array_policy

Added: sandbox/statistics/detail/assign/boost/assign/auto_size/array/ref.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/array/ref.hpp 2010-03-01 11:07:04 EST (Mon, 01 Mar 2010)
@@ -0,0 +1,29 @@
+//////////////////////////////////////////////////////////////////////////////
+// assign::detail::array::ref.hpp //
+// //
+// (C) Copyright 2010 Erwann Rogard //
+// Use, modification and distribution are subject to the //
+// Boost Software License, Version 1.0. (See accompanying file //
+// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
+//////////////////////////////////////////////////////////////////////////////
+#ifndef BOOST_ASSIGN_AUTO_SIZE_DETAIL_ARRAY_REF_ER_2010_HPP
+#define BOOST_ASSIGN_AUTO_SIZE_DETAIL_ARRAY_REF_ER_2010_HPP
+#include <boost/array.hpp>
+
+namespace boost{
+namespace assign{
+namespace detail{
+namespace auto_size{
+
+ template<typename T,int N,template<typename> class Ref>
+ struct ref_array{
+ typedef boost::array<typename Ref<T>::type,N> type;
+ };
+
+}// auto_size
+}// detail
+}// assign
+}// boost
+
+#endif
+

Modified: sandbox/statistics/detail/assign/libs/assign/test/speed_common.cpp
==============================================================================
--- sandbox/statistics/detail/assign/libs/assign/test/speed_common.cpp (original)
+++ sandbox/statistics/detail/assign/libs/assign/test/speed_common.cpp 2010-03-01 11:07:04 EST (Mon, 01 Mar 2010)
@@ -5,6 +5,7 @@
 #include <algorithm>
 #include <string>
 #include <vector>
+#include <iterator>
 #include <boost/bind.hpp>
 #include <libs/assign/test/speed_common.h>
 


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