|
Boost Users : |
From: Delfin Rojas (drojas_at_[hidden])
Date: 2008-06-18 12:51:52
> Sean Farrow wrote
>
> Hi:
> I need to convert and std::string to an int, should I use Lexical_cast
> or can I just use static_cast?
> Sean.
>
lexical_cast. In general you use static_cast when you want to convert
numeric data types such as ints to floats.
-delfin
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