BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

Archicad C++ API
About Archicad add-on development using the C++ API.

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

dushyant
Enthusiast

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
Learn and get certified!