AnthonyCalandra / modern-cpp-features

A cheatsheet of modern C++ language and library features.
MIT License
19.6k stars 2.08k forks source link

Inline static members #74

Closed AnthonyCalandra closed 4 years ago

AnthonyCalandra commented 4 years ago

Include an example of inline static members in the "Inline variables" section.

tawmoto commented 4 years ago

Thank you for taking my suggestion into consideration. I think that the inline static is a great addition to C++17, instead of declaring the static variable in 2 places (header and cpp).

AnthonyCalandra commented 4 years ago

Merged. https://github.com/AnthonyCalandra/modern-cpp-features/pull/77