This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Template problems


On Tue, Jun 24, 2008 at 4:06 PM, Andrew McPherson
<andrew.mcpherson@gmail.com> wrote:


> template <class TAnotherClass>
> class Test2
> {
> public:
>
>        void Initialize()
>        {
You missed the template keyword here:
>            mTest.TestMe<Nothing2>();
That should be:

            mTest. template TestMe<Nothing2>();

>        }
>
>        Test1<TAnotherClass> mTest;
> };

Thanks,
Andrew Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]