|
From: | red floyd |
Subject: | Re: g++ 4: error: no type named ‘iterator_category’ in ‘class myclass’ |
Date: | Fri, 08 Jul 2005 20:38:01 GMT |
User-agent: | Mozilla Thunderbird 1.0 (Windows/20041206) |
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&]>
{ // ... };
[Prev in Thread] | Current Thread | [Next in Thread] |