rug-compling / Alpino

Alpino parser and related tools for Dutch
GNU Lesser General Public License v2.1
22 stars 2 forks source link

Fix build of train_ngram_model on modern C++ compilers #3

Closed danieldk closed 4 years ago

danieldk commented 4 years ago

train_ngram_model uses both the std and std::tr1 namespaces. Since C++ >= 11 has shared_ptr in the std namespace, uses of shared_ptr were ambiguous. This change makes train_ngram_model use std::shared_ptr. While at it, also replace uses of TR1's functional and unordered_map.