Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STYLE: Add in-class {} initializers to classes with virtual functions #3913

Commits on Feb 8, 2023

  1. STYLE: Add in-class {} initializers to classes with virtual functions

    Added in-class `{}` default member initializers to data members of classes
    that have one or more virtual member functions.
    
    For an object that has one or more virtual member functions, the performance
    cost of adding a `{}` default member initializer to each of its non-static data
    members should be acceptable, relative to cost of the initialization of its
    virtual table.
    
    Follow-up to pull request InsightSoftwareConsortium#3851
    commit 5e2c49f
    "STYLE: Add in-class `{}` member initializers to objects created by New()"
    (which only looked at classes that have a `itkNewMacro`).
    N-Dekker committed Feb 8, 2023
    Configuration menu
    Copy the full SHA
    6ba4e1d View commit details
    Browse the repository at this point in the history