I started my discussion about the "Automatic Return Type (C++98)" in my last post. Today, I'm faced with the same challenge but solve it with C++11, C++14, and C++20.
Depending on the used C++ standard, there are different ways to return the correct return type of a function template. In this post, I start with traits (C++98), continue in my next post with C++11/14, and end with concepts (C++20).
Andreas Fertigs story with C++ Insights goes on. This weeks post is about type deduction with auto and decltype or as I often phrase it: "Use the smartness of the compiler."
This post continues our journey through the functional features of classical, modern, and future C++. Today, we stop in the present.
Currently are 262 guests and no members online
Kubik-Rubik Joomla! Extensions