Boost logo

Boost Users :

Subject: Re: [Boost-users] convert from string to int
From: Michele Caini (michele.caini_at_[hidden])
Date: 2010-02-11 12:53:41


Il 11/02/2010 17:17, pedro chaparro ha scritto:
> hi, what is the sintax of the command to do a conversion from string to int?
> thanks

Maybe you can use boost lexical_cast. Something like:

  boost::lexical_cast<int>(your_std_string):


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net