aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2003-10-05 14:15:31 +0000
committerMax Horn2003-10-05 14:15:31 +0000
commitbfde7528bab0dfa74bde6173ca31d61818c01bd9 (patch)
treeb76fc2604fd483931dead3e3e6d427bf33f12319
parentfd2c041d79e6b4132d7edeab6be613984dedefd3 (diff)
downloadscummvm-rg350-bfde7528bab0dfa74bde6173ca31d61818c01bd9.tar.gz
scummvm-rg350-bfde7528bab0dfa74bde6173ca31d61818c01bd9.tar.bz2
scummvm-rg350-bfde7528bab0dfa74bde6173ca31d61818c01bd9.zip
no need for an explicit error here; rather, the linker will catch any invalid uses if we don't give a body
svn-id: r10610
-rw-r--r--common/map.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/common/map.h b/common/map.h
index b043ff01ad..1491c84822 100644
--- a/common/map.h
+++ b/common/map.h
@@ -33,7 +33,7 @@ namespace Common {
* balanced. Ultimately this template should be reimplemented, e.g. using
* a red-black tree. Or if one day using Std C++ lib becomes acceptable,
* we can use that.
- * @todo Having unit tests for class map would be very desirable. There are a
+ * @todo Having unit tests for this class would be very desirable. There are a
* big number of things which can go wrong in this code.
*/
template <class Key, class Value>
@@ -51,14 +51,9 @@ protected:
Node *_root;
Node *_header;
- Map<Key, Value>(const Map<Key, Value> &map) {
- error("No copy constructor!");
- return 0;
- }
- Map<Key, Value> &operator =(const Map<Key, Value> &map) {
- error("No copy operator!");
- return 0;
- }
+private:
+ Map<Key, Value>(const Map<Key, Value> &map);
+ Map<Key, Value> &operator =(const Map<Key, Value> &map);
public:
class ConstIterator {