Why is a constructor necessary in a const member struct?
From ยง8.5 [dcl.init]/7: If a program calls for the default initialization of an object of a const-qualified type T, T shall be a class type with a user-provided default constructor. The default constructor of AClass default-initializes the const member (see below), so that member must have a user-provided default constructor. Using = default does not … Read more