Commit 6817d793 authored by Florent D'Halluin's avatar Florent D'Halluin
Browse files

Change IteratorBase::operator*() to return a copy, not a ref.

* include/vaucanson/automata/implementation/iterators/iterator_base.hh,
* include/vaucanson/automata/implementation/iterators/iterator_base.hxx:
Do that.
parent 9bb1f5d4
2009-09-15 d-halluin <d-halluin@lrde.epita.fr>
Change IteratorBase::operator*() to return a copy, not a ref.
* include/vaucanson/automata/implementation/iterators/iterator_base.hh,
* include/vaucanson/automata/implementation/iterators/iterator_base.hxx:
Do that.
2009-09-15 d-halluin <d-halluin@lrde.epita.fr>
 
Add graph in IteratorBase CTOR.
......
......@@ -51,7 +51,7 @@ namespace vcsn
void next();
bool done() const;
value_type& operator*() const;
value_type operator*() const;
protected:
......
......@@ -46,7 +46,7 @@ namespace vcsn
}
template <typename S>
typename IteratorBase<S>::value_type&
typename IteratorBase<S>::value_type
IteratorBase<S>::operator*() const
{
return static_cast<const S*>(this)->op_operator_star();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment