Boost logo

Boost :

From: Pavel Chikulaev (pavel.chikulaev_at_[hidden])
Date: 2005-03-23 07:19:09


Hi all,

It's quite strange that I can't write something like that:

ptr_vector<int> v;

ptr_vector<int>::const_iterator i = v.begin(); //won't compile on VC7.1
ptr_vector<int>::iterator j = v.begin(); //It works

ptr_vector<int>::ptr_const_iterator ip = v.ptr_begin(); //won't compile on
VC7.1
ptr_vector<int>::ptr_iterator jp = v.ptr_begin(); //it works

but

const ptr_vector<int> cv;

ptr_vector<int>::const_iterator k = cv.begin(); //works as expected
ptr_vector<int>::const_iterator kp = cv.ptr_begin(); //works as expected

but

std::vector<int *> v2;
std::vector<int *>::const_iterator = v2.begin(); //works just fine

Obviously, this is a bug.

--
Pavel Chikulaev

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk