Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
7348c407
Commit
7348c407
authored
Apr 05, 2017
by
Ivan Smirnov
Committed by
Jason Rhinelander
Apr 05, 2017
Browse files
Fix -Wmissing-braces warning
parent
6906b270
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/pybind11/cast.h
include/pybind11/cast.h
+1
-1
No files found.
include/pybind11/cast.h
View file @
7348c407
...
@@ -1256,7 +1256,7 @@ template <return_value_policy policy = return_value_policy::automatic_reference,
...
@@ -1256,7 +1256,7 @@ template <return_value_policy policy = return_value_policy::automatic_reference,
#if defined(NDEBUG)
#if defined(NDEBUG)
throw
cast_error
(
"make_tuple(): unable to convert arguments to Python object (compile in debug mode for details)"
);
throw
cast_error
(
"make_tuple(): unable to convert arguments to Python object (compile in debug mode for details)"
);
#else
#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 '"
+
throw
cast_error
(
"make_tuple(): unable to convert argument of type '"
+
argtypes
[
i
]
+
"' to Python object"
);
argtypes
[
i
]
+
"' to Python object"
);
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment