Monthly Archives: July 2016

C++11 – explain SFINAE with example of enable_if

Above code will be only generated by compiler only if the first boolean type is true, if not code generation will not happen due to the rule of SFINAE.

Posted in C++, Programming | Leave a comment

C++11- enum class with underlying type

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 catch error as well. Getting underlying type from enum type

Posted in C++, Programming | Leave a comment