AnthonyCalandra / modern-cpp-features

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

Simplify Type Traits example #35

Closed tupaschoal closed 6 years ago

tupaschoal commented 6 years ago

The std::is_<type>::value already returns a bool, so comparing it to 1 is unnecessary.

Closes #31

AnthonyCalandra commented 6 years ago

Thank you!