diff --git a/DESCRIPTION b/DESCRIPTION index 38c3e3f..8f7005c 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -2,7 +2,7 @@ Package: udpipe Type: Package Title: Tokenization, Parts of Speech Tagging, Lemmatization and Dependency Parsing with the 'UDPipe' 'NLP' Toolkit -Version: 0.8.15 +Version: 0.8.16 Maintainer: Jan Wijffels Authors@R: c( person('Jan', 'Wijffels', role = c('aut', 'cre', 'cph'), email = 'jwijffels@bnosac.be', comment = 'R wrapper'), diff --git a/NEWS.md b/NEWS.md index f704e99..e9b34fa 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,7 @@ +## CHANGES IN udpipe VERSION 0.8.16 + +- Fix on the declaration of persistent_unordered_map for C++20 + ## CHANGES IN udpipe VERSION 0.8.15 - Drop C++11 from Makevars diff --git a/src/udpipe.cpp b/src/udpipe.cpp index 5320ef2..9664062 100644 --- a/src/udpipe.cpp +++ b/src/udpipe.cpp @@ -3492,7 +3492,7 @@ class persistent_unordered_map { inline const unsigned char* data_start(int len) const; // Creation functions - persistent_unordered_map() {} + inline persistent_unordered_map(); template persistent_unordered_map(const unordered_map& map, double load_factor, EntryEncode entry_encode); template @@ -3634,6 +3634,8 @@ const unsigned char* persistent_unordered_map::data_start(int len) const { return unsigned(len) < hashes.size() ? hashes[len].data.data() : nullptr; } +persistent_unordered_map::persistent_unordered_map() {} + void persistent_unordered_map::resize(unsigned elems) { if (hashes.size() == 0) hashes.emplace_back(1); else if (hashes.size() == 1) hashes.emplace_back(1<<8);