Boost logo

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.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at