Working type casters for wide strings and wide characters

This commit is contained in:
Wenzel Jakob
2016-03-08 19:40:32 +01:00
5 changed files with 66 additions and 20 deletions

View File

@@ -241,10 +241,14 @@ as arguments and return values, refer to the section on binding :ref:`classes`.
+----------------------------+--------------------------+-----------------------+
| char | Character literal | pybind11/pybind11.h |
+----------------------------+--------------------------+-----------------------+
| wchar_t | Wide character literal | pybind11/pybind11.h |
+----------------------------+--------------------------+-----------------------+
| const char * | UTF-8 string literal | pybind11/pybind11.h |
+----------------------------+--------------------------+-----------------------+
| std::string | STL dynamic UTF-8 string | pybind11/pybind11.h |
+----------------------------+--------------------------+-----------------------+
| std::wstring | STL dynamic wide string | pybind11/pybind11.h |
+----------------------------+--------------------------+-----------------------+
| std::pair<T1, T2> | Pair of two custom types | pybind11/pybind11.h |
+----------------------------+--------------------------+-----------------------+
| std::tuple<....> | Arbitrary tuple of types | pybind11/pybind11.h |

View File

@@ -5,8 +5,7 @@ Changelog
1.4 (not yet released)
--------------------------
TBD
* Transparent type conversion for ``std::wstring`` and ``wchar_t``
1.3 (March 8, 2016)
--------------------------