From bfde7528bab0dfa74bde6173ca31d61818c01bd9 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 5 Oct 2003 14:15:31 +0000 Subject: 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 --- common/map.h | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'common/map.h') 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 @@ -51,14 +51,9 @@ protected: Node *_root; Node *_header; - Map(const Map &map) { - error("No copy constructor!"); - return 0; - } - Map &operator =(const Map &map) { - error("No copy operator!"); - return 0; - } +private: + Map(const Map &map); + Map &operator =(const Map &map); public: class ConstIterator { -- cgit v1.2.3