Bug 1495892 - Aggregates in c++2a can't have deleted ctors. r=dholbert
authorJeff Gilbert <jgilbert@mozilla.com>
Tue, 16 Oct 2018 19:39:37 +0000
changeset 497266 af0263577e4d16da5c44df23ef5a44685c07a4d0
parent 497265 963840088024c60bc7e52d6046312989a2935705
child 497267 4c98e1b28c388eed1ce835038f570cc0169ef389
push id9996
push userarchaeopteryx@coole-files.de
push dateThu, 18 Oct 2018 18:37:15 +0000
treeherdermozilla-beta@8efe26839243 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdholbert
bugs1495892
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1495892 - Aggregates in c++2a can't have deleted ctors. r=dholbert GLContextSymbols previously had a deleted default ctor to prevent accidentally leaving its members uninitialized, instead of zeroing with aggregate initialization. Differential Revision: https://phabricator.services.mozilla.com/D8796
gfx/gl/GLContextSymbols.h
--- a/gfx/gl/GLContextSymbols.h
+++ b/gfx/gl/GLContextSymbols.h
@@ -22,18 +22,16 @@
 #define GLAPI
 #endif
 
 namespace mozilla {
 namespace gl {
 
 struct GLContextSymbols final
 {
-    GLContextSymbols() = delete; // Initialize with {}.
-
     void (GLAPIENTRY * fActiveTexture)(GLenum);
     void (GLAPIENTRY * fAttachShader)(GLuint, GLuint);
     void (GLAPIENTRY * fBeginQuery)(GLenum, GLuint);
     void (GLAPIENTRY * fBindAttribLocation)(GLuint, GLuint, const GLchar*);
     void (GLAPIENTRY * fBindBuffer)(GLenum, GLuint);
     void (GLAPIENTRY * fBindTexture)(GLenum, GLuint);
     void (GLAPIENTRY * fBindVertexArray)(GLuint);
     void (GLAPIENTRY * fBlendColor)(GLfloat, GLfloat, GLfloat, GLfloat);