fork(3) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template<typename DependentType>
  5. struct Main {
  6. DependentType dependent;
  7. void call() {
  8. dependent. template call<DependentType>();
  9. }
  10. };
  11.  
  12. struct Dependent {
  13. template<typename T> void call() {
  14. cout << "dependent call" << endl;
  15. }
  16. };
  17.  
  18. int main() {
  19. Main<Dependent> m;
  20. m.call();
  21. return 0;
  22. }
Success #stdin #stdout 0s 3140KB
stdin
Standard input is empty
stdout
dependent call