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
2ca07de8
Commit
2ca07de8
authored
Jan 17, 2016
by
Wenzel Jakob
Browse files
minor fix for PYBIND11_OBJECT_CVT
parent
5f218b3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/pybind11/pytypes.h
include/pybind11/pytypes.h
+1
-1
No files found.
include/pybind11/pytypes.h
View file @
2ca07de8
...
@@ -228,7 +228,7 @@ inline iterator handle::end() const { return iterator(nullptr); }
...
@@ -228,7 +228,7 @@ inline iterator handle::end() const { return iterator(nullptr); }
Name(const handle &h, bool borrowed) : Parent(h, borrowed) { CvtStmt; } \
Name(const handle &h, bool borrowed) : Parent(h, borrowed) { CvtStmt; } \
Name(const object& o): Parent(o) { CvtStmt; } \
Name(const object& o): Parent(o) { CvtStmt; } \
Name(object&& o): Parent(std::move(o)) { CvtStmt; } \
Name(object&& o): Parent(std::move(o)) { CvtStmt; } \
Name& operator=(object&& o) {
return
static_cast<Name&>(object::operator=(std::move(o))); CvtStmt; } \
Name& operator=(object&& o) {
(void)
static_cast<Name&>(object::operator=(std::move(o))); CvtStmt;
return *this;
} \
Name& operator=(object& o) { return static_cast<Name&>(object::operator=(o)); CvtStmt; } \
Name& operator=(object& o) { return static_cast<Name&>(object::operator=(o)); CvtStmt; } \
bool check() const { return m_ptr != nullptr && (bool) CheckFun(m_ptr); }
bool check() const { return m_ptr != nullptr && (bool) CheckFun(m_ptr); }
...
...
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