Re: [Boost-bugs] [Boost C++ Libraries] #5450: range doesn't support circular_buffer

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5450: range doesn't support circular_buffer
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-04-22 14:21:25


#5450: range doesn't support circular_buffer
-------------------------------+--------------------------------------------
  Reporter: anonymous | Owner: neilgroves
      Type: Feature Requests | Status: new
 Milestone: To Be Determined | Component: range
   Version: Boost 1.47.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------

Comment (by steven_watanabe):

 I don't know what you did, but the following works for me with MSVC 2010.

 {{{
 #!c++
 #include <boost/circular_buffer.hpp>

 #include <boost/range/algorithm/copy.hpp>

 #include <iterator>

 #include <iostream>



 int main() {

         int array[10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };

         boost::circular_buffer<int> buf(20, array, array + 10);

         boost::copy(buf, std::ostream_iterator<int>(std::cout, "\n"));

 }
 }}}

 Please provide:
 a) A small self-contained test case
 b) The compiler you're using
 c) The version of Boost you're using

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5450#comment:3>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC