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
b90e68de
Commit
b90e68de
authored
Mar 27, 2016
by
Wenzel Jakob
Browse files
another corner case (fixes #151)
parent
08927e98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
include/pybind11/cast.h
include/pybind11/cast.h
+2
-1
No files found.
include/pybind11/cast.h
View file @
b90e68de
...
@@ -356,7 +356,8 @@ public:
...
@@ -356,7 +356,8 @@ public:
return
handle
(
Py_None
).
inc_ref
();
return
handle
(
Py_None
).
inc_ref
();
}
}
operator
void
*
()
{
return
value
;
}
template
<
typename
T
>
using
cast_op_type
=
void
*&
;
operator
void
*&
()
{
return
value
;
}
private:
private:
void
*
value
=
nullptr
;
void
*
value
=
nullptr
;
};
};
...
...
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