Afficher un message
Vieux 01/07/2008, 20h17   #4
steve yee
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: gcc 4 can not resolve member var derived from base class in atemplate class


so this is a standard, not a bug of gcc? but vc9 can compile it.


On Jul 2, 2:00am, Juha Nieminen <nos...@thanks.invalid> wrote:
> steve yee wrote:
> > test.cpp: In member function ‘void signal0<mt_policy>::aaa()’:
> > test.cpp:17: error: ‘a’ was not declared in this scope

>
> You have to add this to your signal0 class:
>
> using Base<mt_policy>::a;
>
> I don't remember now why this was standardized like that.


  Réponse avec citation
 
Page generated in 0,27137 seconds with 9 queries