fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template <typename T>
  5. class Decoder {
  6. T* impl_;
  7. public:
  8. Decoder();
  9. };
  10.  
  11. class DecoderA;
  12. class DecoderB;
  13.  
  14. int main() {
  15. Decoder<DecoderA> a;
  16. Decoder<DecoderB> b;
  17. return 0;
  18. }
  19.  
  20. template <typename T>
  21. Decoder<T>::Decoder () { impl_ = new T; }
  22.  
  23. class DecoderA {};
  24. class DecoderB {};
  25.  
  26. template class Decoder<DecoderA>;
  27. template class Decoder<DecoderB>;
  28.  
  29.  
  30.  
Success #stdin #stdout 0s 3424KB
stdin
Standard input is empty
stdout
Standard output is empty