3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
9 * Full author contact details are available in file CREDITS.
14 #include <boost/lexical_cast.hpp>
17 using boost::lexical_cast;
22 string const tostr(bool b)
24 return (b ? "true" : "false");
28 string const tostr(unsigned int i)
30 return lexical_cast<string>(i);
34 string const tostr(long int i)
36 return lexical_cast<string>(i);
40 string const tostr(double d)
42 return lexical_cast<string>(d);
46 string const tostr(int i)
48 return lexical_cast<string>(i);
52 string const tostr(string const & s)
58 string const tostr(long unsigned int i)
60 return lexical_cast<string>(i);