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
1e1f3675
Commit
1e1f3675
authored
Apr 07, 2016
by
Wenzel Jakob
Browse files
added limitations section
parent
33c2a049
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
docs/index.rst
docs/index.rst
+1
-0
docs/limitations.rst
docs/limitations.rst
+19
-0
No files found.
docs/index.rst
View file @
1e1f3675
...
@@ -14,6 +14,7 @@ Contents:
...
@@ -14,6 +14,7 @@ Contents:
advanced
advanced
cmake
cmake
benchmark
benchmark
limitations
faq
faq
reference
reference
changelog
changelog
docs/limitations.rst
0 → 100644
View file @
1e1f3675
Limitations
###########
pybind11 strives to be a general solution to binding generation, but it also has
certain limitations:
- pybind11 casts away ``const``-ness in function arguments and return values.
This is in line with the Python language, which has no concept of ``const``
values. This means that some additional care is needed to avoid bugs that
would be caught by the type checker in a traditional C++ program.
- Multiple inheritance relationships on the C++ side cannot be mapped to
Python.
Both of these features could be implemented but would lead to a significant
increase in complexity. I've decided to draw the line here to keep this project
simple and compact. Users who absolutely require these features are encouraged
to fork pybind11.
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