I have some code that looks like this:
static std::string Foo(const std::string& blah) { if ( someWierdEdgeCase() ){ return false; // <-- this l
static std::string Foo(const std::string& blah) { std::string resourcePath = ""; if ( someWierdEdgeCase() ){ return resourcePath; // <-- Now you're returning a string } resourcePath.append("/assets/"); return resourcePath; }