Developer forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Warnings: Prefer 'enum class' over 'enum'

dushyant
Booster

Hi all,

 

I'm getting warnings in almost all examples in VS 2019 with API-25 saying: Prefer 'enum class' over 'enum'

This is an example out of many such warnings I get on building the solution:

 

Warning C26812 The enum type 'API_PropertyGroupType' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). DG_Test C:\Program Files\GRAPHISOFT\API Development Kit 25.3002\Support\Inc\APIdefs_Properties.h 274 

 

 

It did not give out such warnings in VS 2017 with API-24. Why is this happening here?

 

Thanks.

0 REPLIES 0

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!