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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user