fork download
  1. template <typename T>
  2. struct Listable
  3. {
  4. T *next;
  5. T *prev;
  6.  
  7. // Lots of other class members not pertaining to the question excluded here
  8. };
  9.  
  10. struct Object : Listable<Object>
  11. {
  12. };
  13.  
  14. int main ()
  15. {
  16. Object o;
  17. }
Success #stdin #stdout 0s 3336KB
stdin
Standard input is empty
stdout
Standard output is empty