From Appmethod Topics
Jump to: navigation, search

Go Up to Type Trait Functions (C++0x) Index


Type Trait Functions


bool __has_virtual_destructor (typename T )

Returns true if and only if T is a class type and the destructor is declared virtual.

Error if T is an incomplete type.

Derived classes have a virtual destructor if the a base class destructor is declared virtual, even if not explicitly declared as virtual in the derived class.

See Also