fork download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. class Header
  7. {
  8. public:
  9. //typedef int AType;
  10. typedef string AType;
  11. Header(typename Header::AType a) : a(a) {}
  12.  
  13. typename Header::AType a;
  14.  
  15. };
  16.  
  17. int main()
  18. {
  19. Header header("asd");
  20.  
  21. cout << header.a << endl;
  22.  
  23. return 0;
  24. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
asd