help-gplusplus
[Top][All Lists]
Advanced

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

Re: g++ 4: error: no type named ‘iterator_category’ in ‘class mycl


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 <johannes@zellner.org> 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'


reply via email to

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