struct X { const static double i = 3.14; };error: floating-point literal cannot appear in a constant-expression const static double i = 3.14; ^~~~Hm, indeed; I hadn't notice that. Dunno if is a bug (clang++ accepts this with a warning). I've added ", provided the initializer is an integer", that should be enough.
I don't think documenting this as a blanket restriction is right. The code is silently accepted without -Wpedantic and few people use the option so the added text would be misleading as is. But my feeling is that this is just a bug, in which case I wouldn't expect to see it documented in any case.
Somehow I knew you'd have something to add here ;). How about this then?
The flexible array addition looks great to me. Thank you! Martin
