Skip to main content
10 events
when toggle format what by license comment
May 23, 2017 at 12:02 history edited URL Rewriter Bot
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Aug 31, 2013 at 22:07 history edited user283145 CC BY-SA 3.0
use a better reference (see http://meta.stackoverflow.com/questions/194788)
Aug 1, 2013 at 15:55 comment added fuzzyTew C++11 includes standard fast functions for this now
Nov 12, 2009 at 15:20 comment added captonssj The C++ with standard library stringstream method doesn't work for strings such as "12-SomeString" even with the .fail() check.
Nov 13, 2008 at 13:42 comment added Johannes Schaub - litb change it to (!(ss >> num).fail() && (ss >> ws).eof()) from ((ss >> num).fail()) if you want the same handling like lexical_cast
Nov 13, 2008 at 13:40 comment added Johannes Schaub - litb Your stringstream version will accept stuff like "10haha" without complaining
Oct 12, 2008 at 11:36 history edited Luka Marinko CC BY-SA 2.5
improved content
Oct 11, 2008 at 19:54 comment added jk. please updated your stringstream version to include a check for stringstream::fail() (as requested by the questioner "Robust and clear error handling")
Oct 11, 2008 at 19:53 history edited Luka Marinko CC BY-SA 2.5
Fixed code
Oct 11, 2008 at 19:47 history answered Luka Marinko CC BY-SA 2.5