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.
16 #include <boost/lexical_cast.hpp>
18 using boost::lexical_cast;
24 string convert<string>(bool b)
26 return (b ? "true" : "false");
31 string convert<string>(char c)
38 string convert<string>(short unsigned int sui)
40 return lexical_cast<string>(sui);
45 string convert<string>(int i)
47 return lexical_cast<string>(i);
52 string convert<string>(unsigned int ui)
54 return lexical_cast<string>(ui);
59 string convert<string>(float f)
61 return lexical_cast<string>(f);
66 string convert<string>(double d)
68 return lexical_cast<string>(d);