summaryrefslogtreecommitdiff
path: root/src/array_fun.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-02-12 15:42:10 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-02-12 15:42:10 +0000
commit9d27eb53f59384eab7e9f11e5f327b2b650949d2 (patch)
tree5d6c1d007169856d8b6023076c1917bbdba1d372 /src/array_fun.h
parentfff02b60125430e68bc2e3ee1e84b85bb261111d (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
Diffstat (limited to 'src/array_fun.h')
-rw-r--r--src/array_fun.h20
1 files changed, 0 insertions, 20 deletions
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;