Appending strings

I'm reviewing some code written by others and bumped into the following line of code:
fdat.push_back( itr->leaf()+"\\"+fdat_i )
Where itr->leaf() and fdat_i are strings. We are using the Boost library.

My question is: does the "+" operator work for strings? I've done some searching and discovered that it works in C#, but can find no mention of it in C or C++. I haven't used strings much (I always end up using c-strings for whatever reason) and have only just started on Boost, so I'm just wondering if this is just a simple case of ignorance or if my friend put some C# in his code.
If by "strings" you mean "std::strings", then yes, it works.
If "strings" also includes char arrays, then no.
Thought so.
I knew it didn't work with c-string (char arrays)... God knows how many times I've used strcat()...

But that's good to know. Mighty handy, 'tis.
Topic archived. No new replies allowed.