This does not fit in the comment field ...
gcc rejects the code:
there are no arguments to 'f1' that depend on a template parameter, so a declaration of 'f1' must be available .
However, introducing this-> to f1 makes it dependent, and then compilation works.
As for my experience, the same behavior applies to:
- (you need to
typedef them again) - (you need to use
using base::f1 or this->f1 )
And I saw this behavior in:
And now we can wait for standardists to get accurate quotes from the standard.
source share