From aa27c61d01aa0965734f2b54264a2ab9cb437480 Mon Sep 17 00:00:00 2001 From: Michele Di Giorgio Date: Tue, 9 Apr 2019 11:25:57 +0100 Subject: [PATCH] Use std::map to fix compilation issue with clang When building with clang the following compilation error is thrown: symbol-table.h:199:3: error: no template named 'map' map key_map_; ^ This patch solves that issue by explicitly specifying the std namespace. --- .../third_party/openfst-1.6.7/src/include/fst/symbol-table.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native_client/ctcdecode/third_party/openfst-1.6.7/src/include/fst/symbol-table.h b/native_client/ctcdecode/third_party/openfst-1.6.7/src/include/fst/symbol-table.h index 75f28ea9..713777cf 100644 --- a/native_client/ctcdecode/third_party/openfst-1.6.7/src/include/fst/symbol-table.h +++ b/native_client/ctcdecode/third_party/openfst-1.6.7/src/include/fst/symbol-table.h @@ -196,7 +196,7 @@ class SymbolTableImpl { std::vector idx_key_; // Maps key to index for key >= dense_key_limit_. // index = key_map_[key] - map key_map_; + std::map key_map_; mutable bool check_sum_finalized_; mutable string check_sum_string_;