Is this an actual compiler error or a code analysis error? Several times, code analysis can be a bit sketchy and report invalid errors.
To disable code analysis for a project, right-click on your project in the Project Explorer, click Properties, then go to the General tab C / C ++, then Code Analysis. Then click "Use Project Settings" and disable the ones you donβt want.
Also, are you sure you are compiling a C ++ 11 compiler?
josephthomas Apr 05 2018-12-12T00: 00Z
source share