Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -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 <jwijffels@bnosac.be>
Authors@R: c(
person('Jan', 'Wijffels', role = c('aut', 'cre', 'cph'), email = 'jwijffels@bnosac.be', comment = 'R wrapper'),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/udpipe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <class Entry, class EntryEncode>
persistent_unordered_map(const unordered_map<string, Entry>& map, double load_factor, EntryEncode entry_encode);
template <class Entry, class EntryEncode>
Expand Down Expand Up @@ -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);
Expand Down
Loading