File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -66,15 +66,16 @@ struct func_transform {
6666 " (must be function)" );
6767
6868 py::detail::make_caster<std::function<raw_t >> func_caster;
69- if (!func_caster.load (src, /* convert*/ false )) {
69+ if (!func_caster.load (src, /* convert*/ false )) {
7070 // Note that each error is slightly different just to help with debugging
7171 throw py::type_error (" Only ctypes double(double) and C++ functions allowed "
7272 " (must be stateless)" );
7373 }
74- auto func = static_cast <std::function<raw_t > &>(func_caster);
74+ auto func = static_cast <std::function<raw_t >&>(func_caster);
7575 auto cfunc = func.target <raw_t *>();
7676 if (cfunc == nullptr ) {
77- throw py::type_error (" Retrieving double(double) function failed (must be stateless)" );
77+ throw py::type_error (
78+ " Retrieving double(double) function failed (must be stateless)" );
7879 }
7980 return std::make_tuple (*cfunc, src);
8081 }
You can’t perform that action at this time.
0 commit comments