Skip to content

Commit 4bd680c

Browse files
committed
VC6 workaround
[SVN r15009]
1 parent 78ae892 commit 4bd680c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test/nested.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,26 @@
88
#include <boost/python/operators.hpp>
99
#include <boost/python/scope.hpp>
1010
#include "test_class.hpp"
11+
#if __GNUC__ != 2
12+
# include <ostream>
13+
#else
14+
# include <ostream.h>
15+
#endif
1116

1217
typedef test_class<> X;
1318
typedef test_class<1> Y;
1419

20+
std::ostream& operator<<(std::ostream& s, X const& x)
21+
{
22+
return s << x.value();
23+
}
24+
25+
std::ostream& operator<<(std::ostream& s, Y const& x)
26+
{
27+
return s << x.value();
28+
}
29+
30+
1531
BOOST_PYTHON_MODULE_INIT(nested_ext)
1632
{
1733
using namespace boost::python;

0 commit comments

Comments
 (0)