Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60214 - sandbox/statistics/detail/assign/boost/assign/auto_size/detail
From: erwann.rogard_at_[hidden]
Date: 2010-03-05 16:07:41


Author: e_r
Date: 2010-03-05 16:07:41 EST (Fri, 05 Mar 2010)
New Revision: 60214
URL: http://svn.boost.org/trac/boost/changeset/60214

Log:
m
Text files modified:
   sandbox/statistics/detail/assign/boost/assign/auto_size/detail/expr.hpp | 18 +++++++++++++++---
   1 files changed, 15 insertions(+), 3 deletions(-)

Modified: sandbox/statistics/detail/assign/boost/assign/auto_size/detail/expr.hpp
==============================================================================
--- sandbox/statistics/detail/assign/boost/assign/auto_size/detail/expr.hpp (original)
+++ sandbox/statistics/detail/assign/boost/assign/auto_size/detail/expr.hpp 2010-03-05 16:07:41 EST (Fri, 05 Mar 2010)
@@ -113,12 +113,23 @@
 
         // TODO csv here.
 
+
+// template<typename K,typename ForwardIterator>
+// typename result_of::expr<T,N+K,Ref,P>::type
+// range(ForwardIterator b,ForwardIterator e){
+// BOOST_ASSERT(std::distance(b,e)>=K);
+// return next_impl<K>(b);
+// }
+
+// template<typename Range>
+// range(const Range& r)
+
         mutable previous_ previous;
         mutable ref_ ref;
 
-
         // private: // temporarily commented out
                 
+ // BUG K>1
         template<int K,typename ForwardIterator>
         typename result_of::expr<T,N+K,Ref,P>::type
         next_impl(ForwardIterator first)const{
@@ -130,8 +141,6 @@
         typename result_of::expr<T,N+K,Ref,P>::type
         next_impl(boost::mpl::int_<K>,ForwardIterator first)const{
             result_type res = (*this)(*first);
- describe(std::cout,res); // debugging only : fine!
- std::cout << std::endl; // debugging only : fine!
             typedef boost::mpl::int_<K-1> k_;
             return res.next_impl(k_(),boost::next(first));
         }
@@ -139,6 +148,9 @@
         template<typename ForwardIterator>
                 const expr&
         next_impl(boost::mpl::int_<0>,ForwardIterator end)const{
+ std::cout << "debugging only : ";
+ describe(std::cout,*this);
+ std::cout << std::endl;
             return (*this);
         }
 


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