AnthonyCalandra / modern-cpp-features

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

"Class types in non-type template parameters" example doesn't compile #130

Open kasparthommen opened 1 year ago

kasparthommen commented 1 year ago

This example doesn't compile:

https://github.com/AnthonyCalandra/modern-cpp-features#class-types-in-non-type-template-parameters

See here:

https://godbolt.org/z/sf6hKPPso

AnthonyCalandra commented 1 year ago

Thanks for the report! You're right, the example doesn't compile, and I think it could benefit from a better example. I'll add it to the TODO list.