$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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