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: Use auto for variables initialized by New() in Examples #2994

Commits on Dec 26, 2021

  1. STYLE: Use auto for variables initialized by New() in Examples

    Replace initializations of the form `T::Pointer var = T::New()`
    (sometimes starting with `typename`) with `auto var = T::New()` in `Examples` to
    reduce code redundancy
    
    In accordance with C++ Core Guidelines, August 19, 2021:
    "ES.11: Use `auto` to avoid redundant repetition of type names"
    https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Res-auto
    
    Following PR InsightSoftwareConsortium#2826
    and commit 828453d.
    jhlegarreta committed Dec 26, 2021
    Configuration menu
    Copy the full SHA
    41cedd7 View commit details
    Browse the repository at this point in the history