Fix -Wmissing-braces warning

This commit is contained in:
Ivan Smirnov 2017-04-05 23:00:38 +01:00 committed by Jason Rhinelander
parent 6906b270d6
commit 7348c407f6

View File

@ -1256,7 +1256,7 @@ template <return_value_policy policy = return_value_policy::automatic_reference,
#if defined(NDEBUG)
throw cast_error("make_tuple(): unable to convert arguments to Python object (compile in debug mode for details)");
#else
std::array<std::string, size> argtypes { type_id<Args>()... };
std::array<std::string, size> argtypes { {type_id<Args>()...} };
throw cast_error("make_tuple(): unable to convert argument of type '" +
argtypes[i] + "' to Python object");
#endif