From 4bd680cec8a54856bcecda62f80fc622565b9e9b Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Tue, 20 Aug 2002 21:15:54 +0000 Subject: [PATCH] VC6 workaround [SVN r15009] --- test/nested.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/nested.cpp b/test/nested.cpp index 1187c7d8..9bc5be32 100644 --- a/test/nested.cpp +++ b/test/nested.cpp @@ -8,10 +8,26 @@ #include #include #include "test_class.hpp" +#if __GNUC__ != 2 +# include +#else +# include +#endif typedef test_class<> X; typedef test_class<1> Y; +std::ostream& operator<<(std::ostream& s, X const& x) +{ + return s << x.value(); +} + +std::ostream& operator<<(std::ostream& s, Y const& x) +{ + return s << x.value(); +} + + BOOST_PYTHON_MODULE_INIT(nested_ext) { using namespace boost::python;