$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] convert from string to int
From: Igor R (boost.lists_at_[hidden])
Date: 2010-02-11 11:24:30
> hi, what is the sintax of the command to do a conversion from string to int?
> thanks
#include <boost/lexical_cast.hpp>
std::string s = "123";
int number = boost::lexical_cast<int>(s);