Boost logo

Boost Users :

From: abir basak (abirbasak_at_[hidden])
Date: 2008-02-27 04:09:51


Hi,
   I have a boost svn trunk checkout (latest one). It seems boost
circular_buffer has a iterator problem for converting from non const to
const iterator, on visual studio 7.1 (2003) release build only.
Can someone check for it ? (It used to work on boost 1.34)

for eg,
using namespace boost::assign;
        typedef boost::circular_buffer<int> CB;
        std::vector<int> v; v+=1,2,3,4,5,6,7,8,9,10,11,12;
   CB buf(10,v.begin(),v.end());
        CB::iterator it = buf.begin();
        CB::const_iterator it1 = buf.begin();/// This line doesn't compile on
release build only.

a second (and little different) question,
why boost::assign doesn't work with circular_buffer directly which has 2
iterator construct like most other STL containers ?

thanks
abir

-- 
Abir Basak, Member IEEE
Software Engineer, Read Ink Technologies
B. Tech, IIT Kharagpur
email: abir_at_[hidden]
homepage: www.abirbasak.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net