Hi David,
David Bertoni <[email protected]> writes:
> const_cast<BinHTTPInputStreamCommon*>(this)->fContentType =
> const_cast<BinHTTPInputStreamCommon*>(this)->findHeader("Content-Type");
I have made this change for the upcoming 3.1.0.
> We really should just make this data member mutable, since the code as
> it stands results in undefined behavior.
Agree about mutable, though it is not used anywhere in the code base
yet. As for the undefined behavior, it will only be the case if someone
creates a const BinHTTPInputStreamCommon object, which is very unlikely
to happen.
Boris
--
Boris Kolpackov, Code Synthesis http://codesynthesis.com/~boris/blog
Open-source XML data binding for C++ http://codesynthesis.com/products/xsd
XML data binding for embedded systems http://codesynthesis.com/products/xsde
Command line interface to C++ compiler http://codesynthesis.com/projects/cli