fork download
  1. struct b {};
  2. struct c {};
  3.  
  4. template <typename A, typename B = b, typename C = c>
  5. struct Outer
  6. {
  7. typedef A typeA;
  8. typedef B typeB;
  9. typedef C typeC;
  10. };
  11.  
  12. template<typename A, typename B>
  13. struct AnotherUserDefinedType {
  14. template<typename CC, typename AA = A, typename BB = B>
  15. struct Inner : public Outer<AA, BB, CC> {};
  16.  
  17. Inner<int> AnIntInner;
  18. Inner<float> AFloatInner;
  19.  
  20. };
  21.  
  22. int main()
  23. {
  24. AnotherUserDefinedType<bool, double> a;
  25. }
  26.  
Success #stdin #stdout 0s 2724KB
stdin
Standard input is empty
stdout
Standard output is empty