aboutsummaryrefslogtreecommitdiff
path: root/trie.cpp
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2019-02-19 02:31:35 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-02-19 10:18:31 +0100
commit6f3c772939463c97a4a8a8371db42b8f4b181c68 (patch)
treef8010e9e49696505e22cd0dff3bd84089392a240 /trie.cpp
parentI somehow got stuff to bulid, now it just doesn't link. (diff)
downloadcalp-6f3c772939463c97a4a8a8371db42b8f4b181c68.tar.gz
calp-6f3c772939463c97a4a8a8371db42b8f4b181c68.tar.xz
No idea, to tired.
Diffstat (limited to 'trie.cpp')
-rw-r--r--trie.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/trie.cpp b/trie.cpp
index 729277bd..a3446a97 100644
--- a/trie.cpp
+++ b/trie.cpp
@@ -68,7 +68,7 @@ int trie<T>::push_back (const char* key, const T& item) {
}
template <class T>
-T& trie<T>::operator[] (char* key) {
+T& trie<T>::operator[] (const char* key) {
trie_node<T>* n = this->root->child;
char* subkey = key;