[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: g++ 4: error: no type named âiterator_ categoryâ in âclass myc
|
From: |
Andre Poenitz |
|
Subject: |
Re: g++ 4: error: no type named âiterator_ categoryâ in âclass myclassâ |
|
Date: |
Fri, 8 Jul 2005 22:39:20 +0200 |
Johannes Zellner <address@hidden> wrote:
> 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?
Somehow looks like g+++ insists on a
typedef output_iterator_tag iterator_category;
in the class.
Andre'