File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -280,6 +280,8 @@ namespace
280280 }
281281 unaryfunc py_encode_string = encode_string_unaryfunc;
282282
283+
284+ #ifndef BOOST_NO_STD_WSTRING
283285 // A SlotPolicy for extracting C++ strings from Python objects.
284286 struct wstring_rvalue_from_python
285287 {
@@ -307,6 +309,7 @@ namespace
307309 return result;
308310 }
309311 };
312+ #endif
310313
311314 struct complex_rvalue_from_python
312315 {
@@ -402,8 +405,10 @@ void initialize_builtin_converters()
402405 // Add an lvalue converter for char which gets us char const*
403406 registry::insert (convert_to_cstring,type_id<char >());
404407
408+ # ifndef BOOST_NO_STD_WSTRING
405409 // Register by-value converters to std::string, std::wstring
406410 slot_rvalue_from_python<std::wstring, wstring_rvalue_from_python>();
411+ # endif
407412 slot_rvalue_from_python<std::string, string_rvalue_from_python>();
408413}
409414
You can’t perform that action at this time.
0 commit comments