mirror of https://github.com/aria2/aria2
2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed operator[] because it is ambiguous with built-in [] operator. * src/array_fun.hpull/1/head
parent
fff02b6012
commit
9d27eb53f5
|
@ -1,3 +1,9 @@
|
|||
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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue