Mercurial > octave-nkf
diff src/symtab.h @ 12122:f4689107dd8c
Explicitly disallow copying in some classes.
author | Pascal Dupuis <Pascal.Dupuis@uclouvain.be> |
---|---|
date | Sat, 22 Jan 2011 02:21:52 -0500 |
parents | 12df7854fa7c |
children | 3229572cbe23 |
line wrap: on
line diff
--- a/src/symtab.h Fri Jan 21 20:22:42 2011 +0100 +++ b/src/symtab.h Sat Jan 22 02:21:52 2011 -0500 @@ -100,6 +100,12 @@ private: + // No copying! + + scope_id_cache (const scope_id_cache&); + + scope_id_cache& operator = (const scope_id_cache&); + static scope_id_cache *instance; // The next available scope not in the free list. @@ -1885,6 +1891,12 @@ private: + // No copying! + + symbol_table (const symbol_table&); + + symbol_table& operator = (const symbol_table&); + typedef std::map<std::string, symbol_record>::const_iterator table_const_iterator; typedef std::map<std::string, symbol_record>::iterator table_iterator;