summaryrefslogtreecommitdiff
path: root/utils/fdict.h
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2012-03-04 21:41:07 -0500
committerChris Dyer <cdyer@cs.cmu.edu>2012-03-04 21:41:07 -0500
commit15170746be2fc718e8fb026b4468e33cf0c63170 (patch)
treee4f3104ee3e0922560db9a6c8557d7c31c3d0f20 /utils/fdict.h
parentdaf05ff3e0e1429539c5875a98093221e6c802a2 (diff)
clean up crp
Diffstat (limited to 'utils/fdict.h')
-rw-r--r--utils/fdict.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/fdict.h b/utils/fdict.h
index f0871b9a..0a2a9456 100644
--- a/utils/fdict.h
+++ b/utils/fdict.h
@@ -10,7 +10,7 @@
#ifdef HAVE_CMPH
#include "perfect_hash.h"
-#include "string_to.h"
+#include <sstream>
#endif
struct FD {
@@ -49,7 +49,9 @@ struct FD {
#ifdef HAVE_CMPH
if (hash_) {
static std::string tls;
- tls = to_string(w);
+ std::ostringstream os;
+ os << w;
+ tls = os.str();
return tls;
}
#endif