File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ type is explicitly allowed.
46
46
* function signatures and declares a local variable
47
47
* 'value' of type inty
48
48
*/
49
- PYBIND11_TYPE_CASTER(inty, _ ("inty"));
49
+ PYBIND11_TYPE_CASTER(inty, const_str ("inty"));
50
50
51
51
/**
52
52
* Conversion part 1 (Python->C++): convert a PyObject into a inty
Original file line number Diff line number Diff line change 17
17
converted to using ``py::module_::import("types").attr("SimpleNamespace") ``
18
18
instead.
19
19
20
+ * The use of ``_ `` in custom type casters can now be replaced with the more
21
+ readable ``const_str `` instead. The old ``_ `` shortcut has been retained
22
+ unless it is being used as a macro (like for gettext).
23
+
20
24
21
25
.. _upgrade-guide-2.7 :
22
26
You can’t perform that action at this time.
0 commit comments