Remove pointer cast operators from ArrayOf<>

ArrayOf<>, unlike UnsizedArrayOf<>, has data before the array.
This was confusing.  Remove.
This commit is contained in:
Behdad Esfahbod 2018-11-02 13:47:33 -04:00
parent f1df441bed
commit 04b82b181d
1 changed files with 0 additions and 3 deletions

View File

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