Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use double braces for std:array initialization to avoid clang warning. #1397

Merged
merged 1 commit into from Oct 25, 2014

Commits on Oct 25, 2014

  1. Use double braces for std:array initialization to avoid clang warning.

    std::array does not have an initializer list constructor, instead (for
    some reason) being defined to contain one public array member, allowing
    it to be directly initialized.  Thus the most explicit way to initialize
    it is with two braces, one for the struct and one for the array.  C++
    allows the second pair of braces to be omitted, but clang complains
    about it.
    comex committed Oct 25, 2014
    Copy the full SHA
    a9f9e81 View commit details
    Browse the repository at this point in the history