How to convert from string to int, long, double, etc

I've viewed some links about the problem.
isstringstream can be the solution but if you have a string representing a double the int converter answer 'yes I can'.
So I think that there is more code to develop , isn't ?
(For example detecting if there is a decimal point, etc)
Any 'modern' solution ?
Thanks
Topic archived. No new replies allowed.