TIL: nsCSubstringTuple st = str + str + str + str; Fn(st); is not safe code. Each + creates reference to a temporary that dies before Fn.
2
1
Replying to @nsIAnswers
@nsIAnswers We should probably put the Tuple type inside some detail:: namespace to discourage callers outside string code from using it.

Apr 24, 2015 · 10:14 PM UTC