Operator+ with chars*
-
How to do this?
@
QString("hello " +
"newbie!");
@ -
-
Thanks but this is not what I wanted: I wanted to use that form as in c# because it is cleaner to read.
-
Cleaner to read or not (it's subjective), this isn't C#.
-
no way so?
-
@
QString("hello " "newbie");
@:-)
-
In C++, you can only overload binary operators if, at least one of the types is a non primitive type. So, as pointers are primitive, you can't use the + operator on (const char*, const char*)
-
0k. thank you!