Commit 894e31c1 authored by Brad King's avatar Brad King
Browse files

BUG: Fix to work-around for xlC overload resolution bug to avoid infinite recursion.

parent 4ae4abea
......@@ -77,6 +77,20 @@ VTKOSTREAM_OPERATOR_FUNC(float* (*a)(void*));
VTKOSTREAM_OPERATOR_FUNC(const char* (*a)(void*));
VTKOSTREAM_OPERATOR_FUNC(void (*a)(void*, int*));
//----------------------------------------------------------------------------
#if defined(__IBMCPP__)
vtkOStreamWrapper& vtkOStreamWrapper::WriteInternal(const char* a)
{
this->ostr << a;
return *this;
}
vtkOStreamWrapper& vtkOStreamWrapper::WriteInternal(void* a)
{
this->ostr << a;
return *this;
}
#endif
//----------------------------------------------------------------------------
vtkOStreamWrapper& vtkOStreamWrapper::write(const char* str,
unsigned long size)
......
......@@ -76,10 +76,12 @@ public:
// Work-around for IBM Visual Age bug in overload resolution.
#if defined(__IBMCPP__)
vtkOStreamWrapper& WriteInternal(const char*);
vtkOStreamWrapper& WriteInternal(void*);
template <typename T>
vtkOStreamWrapper& operator << (T* p)
{
return this->operator << (p);
return this->WriteInternal(p);
}
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment