C++17:direct-list-initialization of enums
In this article, we are going to learn about the C++ 17 feature of List-initialization of scoped enums. This feature allows programmers initialize enums with distinct type-safe integer types. Strongly types enums or scoped enums were introduces in C++ 11 , but there were some vulnerabilities or you can say loop holes that were faced …