Ad
  • Custom User Avatar

    I found using stringstream for solustion a bit confusing.
    Seems like complication from nowhere to me.
    If you need std::string why not just using that type and obvious concatination.
    The clever side of that solution is leaving "-" character at first and cut it out in substr operation.
    Anyway, how @adammusial mentioned before that solution left an exception in that cleverness.