@@ -25,11 +25,14 @@ struct by_const_reference
2525 }
2626};
2727
28+ char const * rewrap_value_mutable_cstring (char * x) { return x; }
29+
2830BOOST_PYTHON_MODULE_INIT (builtin_converters)
2931{
3032 boost::python::module (" builtin_converters" )
3133
3234 .def (" rewrap_value_bool" , by_value<bool >::rewrap)
35+ .def (" rewrap_value_char" , by_value<char >::rewrap)
3336 .def (" rewrap_value_signed_char" , by_value<signed char >::rewrap)
3437 .def (" rewrap_value_unsigned_char" , by_value<unsigned char >::rewrap)
3538 .def (" rewrap_value_int" , by_value<int >::rewrap)
@@ -47,8 +50,12 @@ BOOST_PYTHON_MODULE_INIT(builtin_converters)
4750 .def (" rewrap_value_string" , by_value<std::string>::rewrap)
4851 .def (" rewrap_value_cstring" , by_value<char const *>::rewrap)
4952
53+ // Expose this to illustrate our failings ;-). See test_builtin_converters.py
54+ .def (" rewrap_value_mutable_cstring" , rewrap_value_mutable_cstring)
55+
5056
5157 .def (" rewrap_const_reference_bool" , by_const_reference<bool >::rewrap)
58+ .def (" rewrap_const_reference_char" , by_const_reference<char >::rewrap)
5259 .def (" rewrap_const_reference_signed_char" , by_const_reference<signed char >::rewrap)
5360 .def (" rewrap_const_reference_unsigned_char" , by_const_reference<unsigned char >::rewrap)
5461 .def (" rewrap_const_reference_int" , by_const_reference<int >::rewrap)
0 commit comments