Remove pointer cast operators from ArrayOf<>
ArrayOf<>, unlike UnsizedArrayOf<>, has data before the array. This was confusing. Remove.
This commit is contained in:
parent
f1df441bed
commit
04b82b181d
|
@ -452,9 +452,6 @@ struct ArrayOf
|
|||
return arrayZ[i];
|
||||
}
|
||||
|
||||
template <typename T> inline operator T * (void) { return arrayZ; }
|
||||
template <typename T> inline operator const T * (void) const { return arrayZ; }
|
||||
|
||||
inline unsigned int get_size (void) const
|
||||
{ return len.static_size + len * Type::static_size; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue