Home

krunalb wrote:
>
> <code snippet>
> #include <iostream>
>
> template <typename Element>
> class Sort
> {
> public:
> class Info
> {
> public:
> Info() {}
> };
>
> public:
> =========== Error Line.
> Error seems to occur only when we try to use pointer/reference to Info
> class. Shockingly, if this pointer is second parameter error vanishes.
> (Sort(uint32_t i, Sort<Element>::Info* pInfo) works)
> Sort(Sort<Element>::Info* pInfo) {}

You are missing a typename:

Sort(typename Sort<Element>::Info* pInfo) {}


--
Ian Collins.

previous
next

Re: How to write spaghetti code in C++???
Source code for the MP package that I'm trying to debug
Re: Elementary question on preprocessors and xlw
Re: Problem regarding process
Re: Replacement for "switch" that can use non-const values?
Fundacja Avalon
Kidprotect
Fundacja Iskierka
Podaruj Zycie
Fundacja Hobbit