diff options
author | Adrian Kummerländer | 2016-06-17 19:57:39 +0200 |
---|---|---|
committer | GitHub | 2016-06-17 19:57:39 +0200 |
commit | ddafc016d088de3e63087507a44827775aaa2c33 (patch) | |
tree | 523973575a9d1992f061954f282170521deee5c6 | |
parent | 6c14deb5b8e377a7bdc1a44d91458f17a4f24981 (diff) | |
parent | cdbb5934d7522e2e9c966fbfdcaa8d0647bc2c1c (diff) | |
download | Trie-master.tar Trie-master.tar.gz Trie-master.tar.bz2 Trie-master.tar.lz Trie-master.tar.xz Trie-master.tar.zst Trie-master.zip |
Evaluation order in this case is unspecified
-rw-r--r-- | src/trie.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -77,7 +77,8 @@ class Trie { typename key_list::const_iterator end ) { if ( current != end ) { - return this->children_[*current].add(++current, end); + auto element = *current; + return this->children_[element].add(++current, end); } else { return this; } |