Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorChris Thrasher2023-12-28 16:39:19 -0600
committerChris Thrasher2023-12-30 18:56:54 -0700
commita5245ac76b18beae4a5b6ed62bbf4ae0194b457c (patch)
tree306b4c0ea51ca9661a391756d1243236e3b21fca /examples
parentb7b71ffd3a2a659412357964e91ee7db954e28df (diff)
downloadcatch3-remove_redundant_destructors.tar.gz
Remove redundant destructorsremove_redundant_destructors
Classes will automatically inherit the virtual-ness of their base class destructors. If the base class already has a virtual destructor and the derived class needs default destructor semantics then the derived class can omit defining the destructor in favor of the compiler automatically defining it. This has an additional benefit of reenabling move semantics. The presence of a user-specified destructor automatically disables move operations.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions