Boost logo

Boost Users :

From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2006-12-04 09:59:09


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


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