Re: Problems with template arguments using G++ compiler
On 7 feb, 16:12, Pavel Shved <Pavel.Sh...@gmail.com> wrote:
> On 7 ÆÅ×, 15:39, p...@ecosimpro.com wrote:
>
> > what I have to do to define properly this static member šin GNU ?
>
> Remove foo from template keyword arguments, so instead of
>
> template<foo> myclass<foo>* myclass<foo>::s_centl = new
> myclass<foo>() ;// OK in MS C++ but fails in GNU
>
> it will look like
>
> template<> myclass<foo>* myclass<foo>::s_centl = new
> myclass<foo>() ;// OK in both MS C++ and GNU :-)
>
> . Then change int with double, look at gnu errors and study template
> specializations.
Thanks, this works properly!
Do you mean that it is a known problem in GNU Compiler?
Regards
|