On Mon, Apr 25, 2011 at 05:20:09PM +0400, Fokin Evgeny wrote:
> The first: It is works with g++-4.4 :-)

No argument. The compiler may accept more than the standard specifies.
But g++ 4.5 got more strict in what it accepts.

> When the member function fully defines in the class body it makes the
> function inline.

The complete declaration of the map must be available at the time it is
used. This is not the case, it is only available as forward declaration.

I consider this piece of code invalid. To fix it, loose the forward
declaration.

Bastian

-- 
War is never imperative.
                -- McCoy, "Balance of Terror", stardate 1709.2



-- 
To UNSUBSCRIBE, email to debian-gcc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110425140836.gd21...@wavehammer.waldi.eu.org

Reply via email to