[Development] API style guide: scoped enum or not?

Stephen Kelly steveire at gmail.com
Fri Jun 16 10:04:30 CEST 2023


On 15/06/2023 23:34, Thiago Macieira wrote:
> On Thursday, 15 June 2023 15:23:47 PDT Stephen Kelly wrote:
>> And, you can introduce it in a way which is source-compatible until the
>> user upgrades their compiler to a compiler version which implements
>> `using enum`:
>>
>>    https://godbolt.org/z/4EWjWhvfa
> 
> That's the "massive code update and can't be helped with macros" I mentioned
> in my other email.

Are you talking about the type of the oopsLostType variable? In places 
where the enum is changed as I showed, variables typed with int like 
that might be more rare than using the enum (or preferably auto). Do we 
know it's a massive porting effort?



More information about the Development mailing list