Check out example codes for "template inheritance c++". It will help you in understanding the concepts better.

Code Example 1

Workarounds:

Change the call from f() to this->f()
Insert using B<T>::f; just prior to calling f().
Change the call from f() to B<T>::f(). Note however that this might not give you what you want if f() is virtual, since it inhibits the virtual dispatch mechanism.

Learn ReactJs, React Native from akashmittal.com