C++11 - explain SFINAE with example of enable_if
1 2 3 4 template <boolB, typename T> class enable_if {}; template <typename T> class enable_if<true, T> {typedef T type}; Above code will ...
1 2 3 4 template <boolB, typename T> class enable_if {}; template <typename T> class enable_if<true, T> {typedef T type}; Above code will ...
C++11 allows us to specify the underlying type for enum class as shown below. If specified value is not in the range of the underlying type, compiler can cat...
Sometimes, a project can depends on another project which is in different git repository. Git can provide a way to maintain this dependencies by a command ca...
This C++ testing framework is very light and only requires a header file to include. Above all it will allow to have testing code in production code. https:/...
It is possible to make the loop faster by using an guarded value so it doesn't need to check the variable validation or extran comparing. https://en.wikipedi...