--- a/util/symtable.hh Fri Dec 26 12:43:13 2014 +0000
+++ b/util/symtable.hh Fri Dec 26 16:36:06 2014 +0000
@@ -91,9 +91,9 @@
void insert(const char *identifier_str, value_t value); // insert a new (string,value) pair. Give an error if string already in map associated to different value!
void insert(const symbol_c *symbol, value_t value); // insert a new (string,value) pair. Give an error if string already in map associated to different value!
- value_t operator[](const char *identifier_str);
- value_t operator[](const std::string identifier_str);
- // value_t operator[](const symbol_c *identifier ); // not yet implemented
+ value_t& operator[](const char *identifier_str);
+ value_t& operator[](const std::string identifier_str);
+ // value_t& operator[](const symbol_c *identifier ); // not yet implemented
/* Since symtable_c does not allow duplicates in each level, count() will return
* - 0 : if not found in any level