• Giuseppe Ottaviano's avatar
    Fix two fbstring operator+ overloads · 81295897
    Giuseppe Ottaviano authored
    Summary: `insert()` returns `fbstring` in most cases, but `iterator` (that is, `value_type*`) when the first argument is an iterator. Two overloads of `operator+` used `insert` as if it returned `fbstring`, which by chance works anyway unless the resulting string contains a `'\0'` (plus it does an extra string copy). This diff fixes the bug.
    
    Reviewed By: philippv, luciang, Gownta
    
    Differential Revision: D2813713
    
    fb-gh-sync-id: 015188b72813da2dabe23980f50f00832d62aa14
    81295897
FBString.h 78.5 KB