std::array
字符串的初始化失败:
const std::array<std::string, 1> str_array {"Text"};
来自gcc 5.1.1的错误消息是:
error: array must be initialized with a brace-enclosed initializer
编辑:这种初始化形式也失败了:
const std::array<std::string, 1> str_array = {"Text"};
编辑2:只有这个表单有效:
const std::array<std::string, 1> str_array {{"Text"}};