2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Removed operator[] because it is ambiguous with built-in []
	operator.
	* src/array_fun.h
pull/1/head
Tatsuhiro Tsujikawa 2009-02-12 15:42:10 +00:00
parent fff02b6012
commit 9d27eb53f5
2 changed files with 6 additions and 20 deletions

View File

@ -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

View File

@ -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;