Skip to content

Commit a9bb2a0

Browse files
committed
VC6 workarounds
[SVN r15026]
1 parent 8a049b8 commit a9bb2a0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

test/Jamfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ bpl-test builtin_converters : test_builtin_converters.py test_builtin_converters
6363
bpl-test test_pointer_adoption ;
6464
bpl-test operators ;
6565
bpl-test callbacks ;
66-
bpl-test defaults ;
66+
bpl-test defaults_ext : defaults.py defaults.cpp ;
6767

6868
bpl-test object ;
6969
bpl-test list ;

test/defaults.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,12 @@ BOOST_PYTHON_MODULE_INIT(defaults_ext)
9999
{
100100
module m("defaults_ext");
101101
m.def("foo", foo, foo_stubs());
102+
103+
#if !(defined(BOOST_MSVC) && (BOOST_MSVC <= 1200))
102104
m.def("bar", signature<object(*)(int, char, std::string, double)>(), bar_stubs());
105+
#else // signature does not work on VC6 only (VC is ok)
106+
m.def("bar", (object(*)(int, char, std::string, double))0, bar_stubs());
107+
#endif
103108

104109
class_<X> xc("X");
105110
m.add(xc);

0 commit comments

Comments
 (0)