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>
|
2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Fixed compile error
|
Fixed compile error
|
||||||
|
|
|
@ -238,16 +238,6 @@ public:
|
||||||
delete [] _array;
|
delete [] _array;
|
||||||
}
|
}
|
||||||
|
|
||||||
T& operator[](size_t index)
|
|
||||||
{
|
|
||||||
return _array[index];
|
|
||||||
}
|
|
||||||
|
|
||||||
const T& operator[](size_t index) const
|
|
||||||
{
|
|
||||||
return _array[index];
|
|
||||||
}
|
|
||||||
|
|
||||||
operator T*()
|
operator T*()
|
||||||
{
|
{
|
||||||
return _array;
|
return _array;
|
||||||
|
@ -266,16 +256,6 @@ private:
|
||||||
public:
|
public:
|
||||||
array_wrapper() {}
|
array_wrapper() {}
|
||||||
|
|
||||||
T& operator[](size_t index)
|
|
||||||
{
|
|
||||||
return _array[index];
|
|
||||||
}
|
|
||||||
|
|
||||||
const T& operator[](size_t index) const
|
|
||||||
{
|
|
||||||
return _array[index];
|
|
||||||
}
|
|
||||||
|
|
||||||
operator T*()
|
operator T*()
|
||||||
{
|
{
|
||||||
return _array;
|
return _array;
|
||||||
|
|
Loading…
Reference in New Issue