Title
regex_token_iterator and const correctness
Status
cd1
Section
[re.tokiter]
Submitter
Daniel Krügler

Created on 2007-03-05.00:00:00 last changed 164 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

1) In ([re.tokiter]/6) change the current declarations

bool operator==(const regex_token_iterator&) const;
bool operator!=(const regex_token_iterator&) const;
const value_type& operator*() const;
const value_type* operator->() const;

2) In [re.tokiter.comp] change the following declarations

bool operator==(const regex_token_iterator& right) const;
bool operator!=(const regex_token_iterator& right) const;

3) In [re.tokiter.deref] change the following declarations

const value_type& operator*() const;
const value_type* operator->() const;
Date: 2007-03-05.00:00:00

Both the class definition of regex_token_iterator ([re.tokiter]/6) and the latter member specifications ([re.tokiter.comp]/1+2) declare both comparison operators as non-const functions. Furtheron, both dereference operators are unexpectedly also declared as non-const in [re.tokiter]/6 as well as in ([re.tokiter.deref]/1+2).

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg3333
2007-03-05 00:00:00admincreate