提交 04b82b18 编写于 作者: B Behdad Esfahbod

Remove pointer cast operators from ArrayOf<>

ArrayOf<>, unlike UnsizedArrayOf<>, has data before the array.
This was confusing.  Remove.
上级 f1df441b
......@@ -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; }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册