E2414 Destructors cannot be declared as template functions (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

Destructors cannot be templates. For example:

class foo {
template<class T>
virtual ~foo();// error: don't try this at home!
};