Revert "Add operator char * to the naked array types as well"
This reverts commit db889c182e
.
Was resulting in ambigious overloads...
This commit is contained in:
parent
c8f94a1ca6
commit
d0163afb7b
|
@ -555,8 +555,6 @@ struct hb_array_t
|
||||||
|
|
||||||
template <typename T> inline operator T * (void) { return arrayZ; }
|
template <typename T> inline operator T * (void) { return arrayZ; }
|
||||||
template <typename T> inline operator const T * (void) const { return arrayZ; }
|
template <typename T> inline operator const T * (void) const { return arrayZ; }
|
||||||
inline operator char * (void) { return (char *) arrayZ; }
|
|
||||||
inline operator const char * (void) const { return (const char *) arrayZ; }
|
|
||||||
|
|
||||||
inline Type * operator & (void) { return arrayZ; }
|
inline Type * operator & (void) { return arrayZ; }
|
||||||
inline const Type * operator & (void) const { return arrayZ; }
|
inline const Type * operator & (void) const { return arrayZ; }
|
||||||
|
|
|
@ -342,8 +342,6 @@ struct UnsizedArrayOf
|
||||||
|
|
||||||
template <typename T> inline operator T * (void) { return arrayZ; }
|
template <typename T> inline operator T * (void) { return arrayZ; }
|
||||||
template <typename T> inline operator const T * (void) const { return arrayZ; }
|
template <typename T> inline operator const T * (void) const { return arrayZ; }
|
||||||
inline operator char * (void) { return (char *) arrayZ; }
|
|
||||||
inline operator const char * (void) const { return (const char *) arrayZ; }
|
|
||||||
|
|
||||||
inline unsigned int get_size (unsigned int len) const
|
inline unsigned int get_size (unsigned int len) const
|
||||||
{ return len * Type::static_size; }
|
{ return len * Type::static_size; }
|
||||||
|
|
Loading…
Reference in New Issue