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

src: do not use non-static class member for constant value #1134

Merged
merged 1 commit into from Feb 21, 2022

Commits on Feb 18, 2022

  1. src: do not use non-static class member for constant value

    Non-static class members need to be set for each instantiated
    object and take up extra space, which is why constant data
    is generally provided through static members or static functions
    (and static functions are a bit easier to use in header-only C++11).
    addaleax committed Feb 18, 2022
    Copy the full SHA
    c0bc06d View commit details
    Browse the repository at this point in the history