mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-19 09:25:51 +00:00
Fix -Wmissing-braces warning
This commit is contained in:
parent
6906b270d6
commit
7348c407f6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user