fork(1) download
  1. template<typename T, typename U>
  2. struct TemplateClass {
  3.  
  4. class DefaultU {
  5. T foo;
  6. /* ... */
  7. };
  8.  
  9.  
  10. T& baz;
  11. U bar;
  12. /* ... */
  13. };
  14.  
  15.  
  16. int main()
  17. {
  18.  
  19. int a = 0;
  20. TemplateClass<int, int>::DefaultU b;
  21. TemplateClass<int, decltype(b)> foo = {a, b};
  22. }
Success #stdin #stdout 0s 3464KB
stdin
Standard input is empty
stdout
Standard output is empty