/* Lecture code 10.2
 *
 * Demonstrating use of boost::lexical_cast.  Note that you must have Boost
 * installed on your system to for this code to work properly.
 */
 
#include <iostream>
#include <string>
#include <boost/lexical_cast.hpp>
using namespace std;
using namespace boost;

int main()
{
	/* Convert 137 to a string. */
	string myString = lexical_cast<string>(137);
	
	/* Convert it back. */
	int myInt = lexical_cast<int>(myString);
	
	return 0;
}