you probably have more than one conversion possible on iDataType or iDataSize to a type ostream can accept. one way around it is to coerce the variables to a particular type so the compiler becomes un-confused. Hope this helps
From:
address@hidden [mailto:address@hidden On Behalf Of Dharmendra Bhojwani
Sent: Wednesday, October 11, 2006 5:23 AM
To: Linux
Subject: [Openexr-user] std::operator<<
I have got some error in my
code....
I have one function like....
void CSISHeader::Dump (std::ostream& aStream, const int aLevel) const
{
aStream << "|" << iDataType << "," << iDataSize << "|";
}
AND i
am getting error while compiling with g++
error: ambiguous overload for 'operator<<' in 'std::operator<<
Can anybody please help in this ?