문제

I've stumbled upon strange behavior when using operator+ on QStrings until I found out that QString doesn't overload operator+ (in contrary to std::string). What reasons are there not to do it (especially since they overloaded quite a bunch of other operators)?

Edit: Sorry, I have looked up the wrong section in the docs. Can someone please close the question?

도움이 되었습니까?

해결책

It does provides the + operator, but the question is what you have at the right hand side?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top