Rapptz / sol

A C++11 Lua wrapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

warning while compiling: demange.h

DominikMS opened this issue · comments

54: const static std::array<std::string, 2> removals = { "struct ", "class " };
55: const static std::array<std::string, 2> replacements = { "::", "_" };

missing braces around initializer for 'std::arraystd::basic_string<char, 2u>::value_type [2] {aka std::basic_string [2]}' [-Wmissing-braces] demangle.hpp

missing braces around initializer for 'std::arraystd::basic_string<char, 2u>::value_type [2] {aka std::basic_string [2]}' [-Wmissing-braces] demangle.hpp


here is fix:
const static std::array<std::string, 2> removals = {{ "struct ", "class " }};
const static std::array<std::string, 2> replacements = {{ "::", "_" }};

I'll take care of this one later.

Technically this syntax is valid but I'll fix it later anyway.

Fixed in 08c94e1