Boost logo

Boost Users :

Subject: Re: [Boost-users] integer to string or char
From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2009-09-04 11:26:15


2009/9/4 pedro chaparro <pdro07_at_[hidden]>:
> hi, i'd like to know what is the equivalent command to itoa in boost? i have
> to convert a variable from integer to string. how can i do that?
>

int i = 42;
string s = lexical_cast<string>(i);

http://www.boost.org/libs/conversion/lexical_cast.htm


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