Skip to content

Commit fba9380

Browse files
committed
Work with gcc2
[SVN r20168]
1 parent 96d66f4 commit fba9380

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/converter/builtin_converters.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)