cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
dushyant
Enthusiast

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

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

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!