Add operator= to IntType, commented out

https://github.com/harfbuzz/harfbuzz/pull/1510
This commit is contained in:
Behdad Esfahbod 2018-12-31 13:37:13 -05:00
parent 183be8f452
commit 415f3f4320
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ struct IntType
typedef Type type;
typedef typename hb_signedness_int (hb_is_signed (Type)) wide_type;
//TODO(C++11)IntType<Type, Size>& operator = (wide_type v) { set (v); return *this; }
void set (wide_type i) { v.set (i); }
operator wide_type () const { return v; }
bool operator == (const IntType<Type,Size> &o) const { return (Type) v == (Type) o.v; }