diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-12 01:21:10 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-12 01:21:10 +0000 |
commit | 32353ed1871dec151d730e4b01d77b6a8d1103e6 (patch) | |
tree | 7322c551010843b0d14ca8f6fcd14abf60ac4f31 /utils/fast_lexical_cast.hpp | |
parent | e52c3fd7f441b2bd7c1dbf3972de7f672d897745 (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-x | utils/fast_lexical_cast.hpp | 11 |
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 |