help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

g++ 4: error: no type named ‘iterator_category’ in ‘class myclassâ


From: Johannes Zellner
Subject: g++ 4: error: no type named ‘iterator_category’ in ‘class myclass’
Date: 08 Jul 2005 18:47:44 GMT
User-agent: slrn/0.9.8.1pl1 (Debian)

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!

-- 
Johannes


reply via email to

[Prev in Thread] Current Thread [Next in Thread]