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 a very interesting C++17 feature: constexpr if. constexpr if enables it to conditionally compile source code and can also be used for nice tricks at compile time.
Hunting
Today 3860
Yesterday 6374
Week 31484
Month 221560
All 11702714
Currently are 185 guests and no members online
Kubik-Rubik Joomla! Extensions
Read more...
Read more...