Skip to content

Commit 7348c40

Browse files
aldanorjagerman
authored andcommitted
Fix -Wmissing-braces warning
1 parent 6906b27 commit 7348c40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/cast.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ template <return_value_policy policy = return_value_policy::automatic_reference,
12561256
#if defined(NDEBUG)
12571257
throw cast_error("make_tuple(): unable to convert arguments to Python object (compile in debug mode for details)");
12581258
#else
1259-
std::array<std::string, size> argtypes { type_id<Args>()... };
1259+
std::array<std::string, size> argtypes { {type_id<Args>()...} };
12601260
throw cast_error("make_tuple(): unable to convert argument of type '" +
12611261
argtypes[i] + "' to Python object");
12621262
#endif

0 commit comments

Comments
 (0)