]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/glcontext.h
Use constexpr instead of enum to define "typeless" constants
[libs/gui.git] / source / graphics / glcontext.h
index 7f08f0e4026423e7d1b3b7c3dd657eae0ff781b1..c637b39e95308bdf6913e7c3dbbfc52de5f9839d 100644 (file)
@@ -11,11 +11,8 @@ class Window;
 
 struct GLOptions
 {
-       enum
-       {
-               DEFAULT_VERSION = 0,
-               LATEST_VERSION = 0xFFFFFFFF
-       };
+       static constexpr unsigned DEFAULT_VERSION = 0;
+       static constexpr unsigned LATEST_VERSION = 0xFFFFFFFF;
 
        bool alpha = false;
        bool stencil = false;