Archive 17/01/2023.

Why does String not overload the << operator for ostream?

SeeSoftware

String doesnt overload the << operator for ostream so you cant do this:

std::cout << String("hi") << "\n";

you have to get the raw string to print it:

std::cout << String("hi").CString() << "\n";
Eugene

Urho avoids bloating headers with STL dependencies (including iostream).
If you want to use streams instead of Urho logging, you could define all serialization operators that you need as free functions.
I think we could add separate header with this stuff in main repo tho…

johnnycable

Other info here: http://floooh.github.io/2016/08/27/asmjs-diet.html