fork download
  1. struct Static
  2. {
  3. };
  4. struct Polymorphic
  5. {
  6. virtual ~Polymorphic(){}
  7. };
  8.  
  9. template<class Policy>
  10. struct Derived: Policy
  11. {
  12. /* non-optional virtual? */ ~Derived() /* non-optional override? */
  13. {
  14. }
  15. };
  16.  
  17. int main()
  18. {
  19. Derived<Polymorphic> p;
  20. Derived<Static> s;
  21. }
Success #stdin #stdout 0s 2892KB
stdin
Standard input is empty
stdout
Standard output is empty