summaryrefslogtreecommitdiff
path: root/utils/fast_lexical_cast.hpp
diff options
context:
space:
mode:
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