Bug 1613985 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Constructors/destructors that are essentially trivial should use `= default` instead of having an otherwise equivalent user-provided implementation (i.e. empty for default constructors and destructors), so that they can be recognized as such by the compiler and by type traits.

This might be achieved semi-automatically by applying the fix-it hints for the `modernize-use-equals-default` clang-tidy check and fixing resulting quirks.
Constructors/destructors/assignment operators that are essentially trivial should use `= default` instead of having an otherwise equivalent user-provided implementation (i.e. empty for default constructors and destructors), so that they can be recognized as such by the compiler and by type traits.

This might be achieved semi-automatically by applying the fix-it hints for the `modernize-use-equals-default` clang-tidy check and fixing resulting quirks.

Back to Bug 1613985 Comment 0