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

Bug#619130: ERROR: compile in g++-4.5



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



Reply to: