How to resolve the issue: warning: use of enumeration in a nested name specifier is a C++11 extension [-Wc++11-extensions] on Visual Studio code
In VS Code:
File>>Preference>>Settings>>Extensions
find C_Cpp>Default:Cpp Standard drop down menu
set that to c++11