fork download
  1.  
  2. #include <iostream>
  3.  
  4. class test
  5. {
  6. public:
  7. template<class obj>
  8. class inner
  9. {
  10. private:
  11. // Line 11:
  12. template<int index, bool unused = true> struct AttributeName;
  13.  
  14. private:
  15. template<bool b>
  16. struct AttributeName<0,b>
  17. {
  18. static inline const char* get()
  19. {
  20. return "prop";
  21. }
  22. };
  23.  
  24. public:
  25. typedef AttributeName<0> propname;
  26. };
  27. typedef inner<test> description;
  28. };
  29.  
  30. int main()
  31. {
  32. test t;
  33. std::cout << test::description::propname::get(); // Line 32
  34. return 0;
  35. }
Success #stdin #stdout 0.02s 2680KB
stdin
Standard input is empty
stdout
prop