“Default member initializer needed within definition of enclosing class outside of member functions” – is my code ill-formed?
Your code is fine from what I can tell. Clang seems to struggle with the = default constructor rather than just defining a default constructor manually. It has the following spiel in its source code about it: DR1351: If the brace-or-equal-initializer of a non-static data member invokes a defaulted default constructor of its class or … Read more