Blame external/pybind11/docs/limitations.rst
|
Packit |
534379 |
Limitations
|
|
Packit |
534379 |
###########
|
|
Packit |
534379 |
|
|
Packit |
534379 |
pybind11 strives to be a general solution to binding generation, but it also has
|
|
Packit |
534379 |
certain limitations:
|
|
Packit |
534379 |
|
|
Packit |
534379 |
- pybind11 casts away ``const``-ness in function arguments and return values.
|
|
Packit |
534379 |
This is in line with the Python language, which has no concept of ``const``
|
|
Packit |
534379 |
values. This means that some additional care is needed to avoid bugs that
|
|
Packit |
534379 |
would be caught by the type checker in a traditional C++ program.
|
|
Packit |
534379 |
|
|
Packit |
534379 |
- The NumPy interface ``pybind11::array`` greatly simplifies accessing
|
|
Packit |
534379 |
numerical data from C++ (and vice versa), but it's not a full-blown array
|
|
Packit |
534379 |
class like ``Eigen::Array`` or ``boost.multi_array``.
|
|
Packit |
534379 |
|
|
Packit |
534379 |
These features could be implemented but would lead to a significant increase in
|
|
Packit |
534379 |
complexity. I've decided to draw the line here to keep this project simple and
|
|
Packit |
534379 |
compact. Users who absolutely require these features are encouraged to fork
|
|
Packit |
534379 |
pybind11.
|
|
Packit |
534379 |
|