diff options
Diffstat (limited to 'src/types.cc')
| -rw-r--r-- | src/types.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/types.cc b/src/types.cc index 0ecf7a16..fc6d50f3 100644 --- a/src/types.cc +++ b/src/types.cc @@ -17,9 +17,9 @@ */ +#include "raw_convert.h" #include "types.h" #include "exceptions.h" -#include <boost/lexical_cast.hpp> #include <boost/algorithm/string.hpp> #include <vector> #include <cstdio> @@ -39,8 +39,8 @@ Fraction::Fraction (string s) if (b.size() != 2) { boost::throw_exception (XMLError ("malformed fraction " + s + " in XML node")); } - numerator = lexical_cast<int> (b[0]); - denominator = lexical_cast<int> (b[1]); + numerator = raw_convert<int> (b[0]); + denominator = raw_convert<int> (b[1]); } bool |
