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
commit32353ed1871dec151d730e4b01d77b6a8d1103e6 (patch)
tree7322c551010843b0d14ca8f6fcd14abf60ac4f31 /utils/fast_lexical_cast.hpp
parente52c3fd7f441b2bd7c1dbf3972de7f672d897745 (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