diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-02-12 15:42:10 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-02-12 15:42:10 +0000 |
| commit | 9d27eb53f59384eab7e9f11e5f327b2b650949d2 (patch) | |
| tree | 5d6c1d007169856d8b6023076c1917bbdba1d372 | |
| parent | fff02b60125430e68bc2e3ee1e84b85bb261111d (diff) | |
2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed operator[] because it is ambiguous with built-in []
operator.
* src/array_fun.h
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | src/array_fun.h | 20 |
2 files changed, 6 insertions, 20 deletions
@@ -1,5 +1,11 @@ 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net> + Removed operator[] because it is ambiguous with built-in [] + operator. + * src/array_fun.h + +2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net> + Fixed compile error * src/OptionParser.cc diff --git a/src/array_fun.h b/src/array_fun.h index cf0ff6df..f7f4dd14 100644 --- a/src/array_fun.h +++ b/src/array_fun.h @@ -238,16 +238,6 @@ public: delete [] _array; } - T& operator[](size_t index) - { - return _array[index]; - } - - const T& operator[](size_t index) const - { - return _array[index]; - } - operator T*() { return _array; @@ -266,16 +256,6 @@ private: public: array_wrapper() {} - T& operator[](size_t index) - { - return _array[index]; - } - - const T& operator[](size_t index) const - { - return _array[index]; - } - operator T*() { return _array; |
