On 1/22/2010 7:38 AM, Alona Rossen wrote:
Hello,
I receive the following error when I build xerces-c 3.0.1 with aCC: HP
ANSI C++ B3910B A.03.35:
Error 742: "xercesc/util/NetAccessors/BinHTTPInputStreamCommon.cpp",
line 260
# Source type unsigned short *const and target type unsigned short
*& in a
const_cast can only differ in their qualifiers
const_cast<XMLCh*&>(fContentType) =
const_cast<BinHTTPInputStreamCo
This is an "interesting" way of modifying a data member in a const
member function. Can you try this instead, to see if it works?
const_cast<BinHTTPInputStreamCommon*>(this)->fContentType =
const_cast<BinHTTPInputStreamCommon*>(this)->findHeader("Content-Type");
We really should just make this data member mutable, since the code as
it stands results in undefined behavior.
Dave