[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
- g++ 4: error: no type named âiterator_categoryâ in âclass myclassâ,
Johannes Zellner <=