
4 Dec
2006
4 Dec
'06
2:59 p.m.
abir basak wrote:
abir basak wrote:
To make the problem little clearer, typedef boost::circular_buffer<int> cbi; typedef std::vector<int> vi; This code works, boost::sub_range<vi> get_range(vi& v,int from,int to){ return boost::sub_range<vi>(v.begin()+from,v.begin()+to); } But this don't. boost::sub_range<cbi> get_range(cbi& v,int from,int to){ return boost::sub_range<cbi>(v.begin()+from,v.begin()+to); }
Try to make the example even smaller so you can post it to the list as a complete example that does not require any additional dependencies. I will try it out then. -Thorsten