2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 06:02:14 +00:00

VC6 workarounds

[SVN r15026]
This commit is contained in:
Joel de Guzman
2002-08-21 13:46:16 +00:00
parent 8a049b8ee7
commit a9bb2a017e
2 changed files with 6 additions and 1 deletions

View File

@@ -63,7 +63,7 @@ bpl-test builtin_converters : test_builtin_converters.py test_builtin_converters
bpl-test test_pointer_adoption ;
bpl-test operators ;
bpl-test callbacks ;
bpl-test defaults ;
bpl-test defaults_ext : defaults.py defaults.cpp ;
bpl-test object ;
bpl-test list ;

View File

@@ -99,7 +99,12 @@ BOOST_PYTHON_MODULE_INIT(defaults_ext)
{
module m("defaults_ext");
m.def("foo", foo, foo_stubs());
#if !(defined(BOOST_MSVC) && (BOOST_MSVC <= 1200))
m.def("bar", signature<object(*)(int, char, std::string, double)>(), bar_stubs());
#else // signature does not work on VC6 only (VC is ok)
m.def("bar", (object(*)(int, char, std::string, double))0, bar_stubs());
#endif
class_<X> xc("X");
m.add(xc);