Skip to content

Instantly share code, notes, and snippets.

@louisdx
Created April 16, 2011 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save louisdx/923086 to your computer and use it in GitHub Desktop.
Save louisdx/923086 to your computer and use it in GitHub Desktop.
if (pos < path.length())
{
try
{
out += path.substr(pos);
}
catch (const std::exception & e)
{
std::cerr << "Exception: " << e.what() << std::endl;
out = "INVALID_STATE";
}
}
return out;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment