In my last post, I presented a possible std::advance implementation based on tag dispatching. One of my readers mentioned that I could also implement std::advance based on constexpr if, or concepts. His right. So let's do it.
In today's post, I want to introduce an exciting C++17 feature: constexpr if. constexpr if enables it to compile source code conditionally and can be used for nice tricks at compile time.
Hunting
Today 2159
Yesterday 4371
Week 37966
Month 168091
All 12055857
Currently are 163 guests and no members online
Kubik-Rubik Joomla! Extensions
Read more...
Read more...