Quote
Is that me being German, or /is/ there really
something wrong with that/those sentence(s)?
No and probably.
You already are a native-speaker in German, a non-trivial language,
and superior in American English as the bulk of the people with whom I
come in contact.
Look at the syntax used in some German statements. There often are
several ways to express a thought. Different ways have slightly
altered means (as stated, cynicism, sarcasm, disbelief, emphasis,
etc). My item that you cited was a similar situation.
What you encountered was a combination of two things: an alternate way
of expressing something combined with (according to my high school
teacher, a most evil thing) a run-on sentence. It also was written
quickly so reflected no attempt at clarity.
Restating in a way that I hope will be better understood:
An STL designer might do that if he received complaints from marketing
types because of customer complaints to them. Although the complaints
in this case are most likely from invalid use he might still do
something to avoid them.
What he might do is to allocate a buffer when c_str() is called, one
into which a copy of the string contents is placed and return its
address. When the customer casts away the const on the c_str() return
value and modifies it, the underlying contents of the string remain
unaltered.
. Ed
Quote
Hendrik Schober wrote in message
news: XXXX@XXXXX.COM ...
>>The interesting part of the standardese is that c_str()
>>may invalidate &s[0] (21.3/5), which is effectively stating
>>that c_str() may cause a memory reallocation. This may
>>be because the string has a contiguous ...
>
>Or it could be that the STL designer, having been beaten up once
>too
>often by marketing types over people who run into trouble when
>misusing his products. then allocates a buffer different from that
>which holds the instance' internal data, this buffer to be used
>exclusively as the c_str() return value.
ed.txt, line #3: General parse error.
Is that me being German, or /is/ there really
something wrong with that/those sentence(s)?
>. Ed
Schobi
--
XXXX@XXXXX.COM is never read
I'm Schobi at suespammers dot org
"The presence of those seeking the truth is infinitely
to be prefered to those thinking they've found it."
Terry Pratchett