#include <string>
+
+namespace lyx {
+
using lyx::docstring;
using boost::lexical_cast;
}
+template<>
+int convert<int>(docstring const s)
+{
+ return strtol(lyx::to_ascii(s).c_str(), 0, 10);
+}
+
+
template<>
unsigned int convert<unsigned int>(string const s)
{
{
return strtod(cptr, 0);
}
+
+
+} // namespace lyx