summaryrefslogtreecommitdiff
path: root/utils/fast_lexical_cast.hpp
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-12 01:21:10 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-12 01:21:10 +0000
commit71eb8b4500ad745710c4f29dd9e97793cea43b0b (patch)
treea94074f7d45fc44e594dac16233af7ca842bc93e /utils/fast_lexical_cast.hpp
parent734d2f82f79c3bfa4ee8d57d0ab6c1eafa6b91cc (diff)
decoder->utils
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@533 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'utils/fast_lexical_cast.hpp')
-rwxr-xr-xutils/fast_lexical_cast.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/fast_lexical_cast.hpp b/utils/fast_lexical_cast.hpp
new file mode 100755
index 00000000..ae49c934
--- /dev/null
+++ b/utils/fast_lexical_cast.hpp
@@ -0,0 +1,11 @@
+#ifndef FAST_LEXICAL_CAST_HPP
+#define FAST_LEXICAL_CAST_HPP
+
+#define BOOST_LEXICAL_CAST_ASSUME_C_LOCALE
+// This should make casting to/from string reasonably fast (see http://accu.org/index.php/journals/1375)
+
+#include <boost/lexical_cast.hpp>
+
+using boost::lexical_cast;
+
+#endif