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;