RAD Studio
ContentsIndex
PreviousUpNext
E2414: Destructors cannot be declared as template functions (C++)

Destructors cannot be templates. For example:

class foo {
template<class T>
virtual ~foo();// error: don't try this at home!
};
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!