Fix operator-> for iterators
The proxy reference pattern used in Boost iterators to provide pointers to temporary values requires that -> actually returns a 'proxy' object that further has -> applied in the calling scope
This commit is contained in:
parent
c78d19bdcc
commit
012baa7d62
@ -70,7 +70,7 @@ class iterator_base
|
||||
return value_type();
|
||||
}
|
||||
|
||||
value_type* operator->() const {
|
||||
proxy operator->() const {
|
||||
return proxy(**this);
|
||||
}
|
||||
|
||||
|
||||
@ -147,7 +147,7 @@ class node_iterator_base
|
||||
return value_type();
|
||||
}
|
||||
|
||||
value_type* operator->() const {
|
||||
proxy operator->() const {
|
||||
return proxy(**this);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user