diff options
Diffstat (limited to 'decoder/tdict.h')
-rw-r--r-- | decoder/tdict.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/decoder/tdict.h b/decoder/tdict.h index fd77543d..1fba5179 100644 --- a/decoder/tdict.h +++ b/decoder/tdict.h @@ -28,4 +28,12 @@ struct TD { static const char* Convert(const WordID& w); }; +struct ToTD { + typedef WordID result_type; + result_type operator()(std::string const& t) const { + return TD::Convert(t); + } +}; + + #endif |