red floyd wrote:
red floyd wrote:
I think you need to instantiate std::iterator_traits<> for myclass.
Look at #include <iterator>
Even better, inherit from std::iterator. See Josuttis 7.5.2.
class myclass : public <std::output_iterator_tag, [mytype],
std::ptrdiff_t, [mytype*], [mytype&]>
{
// ...
};
I assume you ment 'class myclass : public std::iterator<...'
I seem to remember some trick with deriving from iterator_traits (from
The C++ Language, 3rd Ed.)
_______________________________________________
Help-gplusplus mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gplusplus