[RFC] Enum improvements
Richard Kimberly Heck
rikiheck at lyx.org
Sat Nov 28 15:11:21 UTC 2020
On 11/28/20 3:42 AM, Yuriy Skalko wrote:
> Now LyX requires C++11 and we can use its new enum features:
>
> 1. Enum base type. It will allow forward declarations of enums in
> headers to break weak, unnecessary dependencies like BufferParams.h
> ---> InsetQuotes.h. This will also improve compilation speed.
>
> 2. Scoped enums. It will allow better type safety. Also some commonly
> used enum declarations can be moved out of classes (that used solely
> for limiting scope of enum values).
In case anyone else is curious, I found this explanation:
https://smartbear.com/blog/develop/closer-to-perfection-get-to-know-c11-scoped-and-ba/
The first bit, involving headers, looks most useful.
Riki
More information about the lyx-devel
mailing list