Johannes Zellner wrote:
Hello,

with g++ 4 (4.0.1) I get the message

{...}/stl_iterator_base_types.h:129: error: no type named 
‘iterator_category’ in ‘class myclass’

where all my code (including myclass) compiled with previous g++ versions
(e.g. g++ 3.3 / g++ 3.4).

I believe that myclass is a valid output iterator class, e.g. for
std::copy, e.g.

    class myclass
    {
    public:
        myclass();
        myclass& operator = (int);
        myclass& operator ++ ();
        myclass& operator * ();
    };

What's the problem?

Any help much appreciated!



I think you need to instantiate std::iterator_traits<> for myclass.

Look at #include <iterator>
_______________________________________________
Help-gplusplus mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to