作者:
gigigigi (gigigigi)
2017-09-23 09:43:23開發平台(Platform): (Ex: Win10, Linux, ...)
Linux
編譯器(Ex: GCC, clang, VC++...)+目標環境(跟開發平台不同的話需列出)
g++
https://gist.github.com/anonymous/f67031c9f2c237589ca2cf4214c86e1a
error: cannot call member function ‘void Derived<T>::toImplement(T&) [with T
= double]’ without object Derived<T>::toImplement(t);
Base<T>::tryUsingImplemented(t); // 這邊從子類別函數 call 父類型函數ok
Derived<T>::toImplement(t); //但是從父類別函數 call 子類型函數不行
請問一下這是什麼原因?
謝謝