Skip to content

Instantly share code, notes, and snippets.

@maidis
Created February 28, 2011 17:12
Show Gist options
  • Save maidis/847641 to your computer and use it in GitHub Desktop.
Save maidis/847641 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <boost/lexical_cast.hpp>
int main()
{
int i = 5;
std::string foo = boost::lexical_cast<std::string>(i);
std::cout << i + i << std::endl;
std::cout << foo + foo << std::endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment