From: Joaquín Cuenca Abela <[EMAIL PROTECTED]>
Sent: Saturday, April 14, 2001 2:13 PM
> operator[] and operator[] const for UT_String
>
> Cheers,
>
> --
> Joaquín Cuenca Abela
> [EMAIL PROTECTED]
>
Joaquin -
MSVC 5.0 is having difficultly with this:
char& UT_String::operator[](size_t iPos)
{
UT_ASSERT(iPos <= size());
return pimpl->data()[iPos];
}
saying something about return cannot convert 'const char' to 'char &'.
Substituting
return (char) pimpl->data()[iPos];
allows it to compile and continue, but I am not sure if this is what you
wanted.
Cheers!
Michael D. Pritchett