fork(3) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template <typename _param, // shadows template parm ‘class _param’
  5. typename _param_ptr = _param*> // shadows template parm ‘class _param_ptr’
  6. class CTest
  7. {
  8. public:
  9. typedef _param CParam;
  10. typedef _param_ptr _param_ptr1; //declaration of ‘typedef _param_ptr CTest<_param, _param_ptr>::_param_ptr’
  11.  
  12. struct STest
  13. {
  14. _param_ptr1 m_operator;
  15.  
  16. inline STest(_param_ptr1 _param1) // declaration of ‘_param_ptr _param’
  17. : m_operator(_param1)
  18. {
  19. }
  20. };
  21. };
  22.  
  23. int main() {
  24. CTest<int> myvar;
  25. return 0;
  26. }
Success #stdin #stdout 0s 4540KB
stdin
Standard input is empty
stdout
Standard output is empty