Any way to avoid this compiler warning

SOLVED

I have a class containing an array which I want to initialize with a variadic constructor. My code can be found here. As far as I can tell this is technically correct using brace elision but I get an annoying 'suggestion' because some braces are missing. Is there an easy fix other than just compiling with -Wno-missing-braces?

Posted Sep 28, 2016, 10:03 PM UTC · edited

22
OmegaNaughtEquals1•

Reading through 8.5.1 [dcl.init.aggr], I only see discussion and examples of initializer clauses being used for assignment initialization. If those rules apply to member initializer lists, then I think clang is being overly careful. That warning isn't present when using gcc-6.2.

2