There is a template function f that requires its template parameter type T to have an inner class named Inner.
Inside f, an instance of the T :: Inner class is created.
Try it first.
I get this, so here is the second attempt, where I do not understand what is wrong:
Why?
In my understanding: Inner is declared as a type. The template has not yet been created. Regardless of whether the Inner type exists or not in the first instance, instantiation is not a definition. Where am I wrong?
c ++ definition templates nested
elrat Jan 25 '17 at 0:07 2017-01-25 00:07
source share