$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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