diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-05-14 09:33:23 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-05-14 09:33:23 +0100 |
| commit | 2f0e6ee9d883abbbc31aca0d1cc80e89eb9b0af2 (patch) | |
| tree | f1215070c7a4458f8b474fc7163345c6c1c10744 /src/types.cc | |
| parent | e64f6002a413f7aaffca60387d82c2e91b931ab9 (diff) | |
| parent | 110dc70856bd0f6ae5ec1931f51a4817c5e38f42 (diff) | |
Merge master.
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 |
