I'm trying to do some error handling, and also playing around with SFML while learning C++, so I might be missing something here. But why am I not allowed to just string 2 sf::String strings together with << like I can with cout.
For example, this fails to compile at <<
sf::String hdr, msg;
sf::Font myFont;
sf::Text myText;
sf::String fontFamily = "kaiu.ttf";
if (!myFont.loadFromFile(fontFamily))
{
hdr = "Warning, unable to load font";
msg = "Unable to load font " << fontFamily;
}
Thanks