We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78ae892 commit 4bd680cCopy full SHA for 4bd680c
1 file changed
test/nested.cpp
@@ -8,10 +8,26 @@
8
#include <boost/python/operators.hpp>
9
#include <boost/python/scope.hpp>
10
#include "test_class.hpp"
11
+#if __GNUC__ != 2
12
+# include <ostream>
13
+#else
14
+# include <ostream.h>
15
+#endif
16
17
typedef test_class<> X;
18
typedef test_class<1> Y;
19
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
28
29
30
31
BOOST_PYTHON_MODULE_INIT(nested_ext)
32
{
33
using namespace boost::python;
0 commit comments