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:
Matt Blair 2015-05-07 13:11:47 -04:00
parent c78d19bdcc
commit 012baa7d62
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ class iterator_base
return value_type();
}
value_type* operator->() const {
proxy operator->() const {
return proxy(**this);
}

View File

@ -147,7 +147,7 @@ class node_iterator_base
return value_type();
}
value_type* operator->() const {
proxy operator->() const {
return proxy(**this);
}