2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-21 17:12:22 +00:00

VC6 workaround

[SVN r15009]
This commit is contained in:
Dave Abrahams
2002-08-20 21:15:54 +00:00
parent 78ae892db6
commit 4bd680cec8

View File

@@ -8,10 +8,26 @@
#include <boost/python/operators.hpp>
#include <boost/python/scope.hpp>
#include "test_class.hpp"
#if __GNUC__ != 2
# include <ostream>
#else
# include <ostream.h>
#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;