Another C++ strictness fix
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 20 Nov 2009 01:35:07 +0000 (20:35 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 20 Nov 2009 01:35:07 +0000 (20:35 -0500)
commit27b2a4a4d504d6ba06b8acd91eab17796bc3b3c8
treeb1380dcea7df2cecbb4417ef3f2b4b7a9dbe4d15
parent640404de481360206d0c08f7528ff14cf9166814
Another C++ strictness fix

Pango Bug 602408 - Invalid C++ code breaks compile with Sun C++ Compiler
(Error: A union member cannot have a user-defined assignment operator)

According to the bug:

C++ Programming Language by Bjarne Stroustrup: Chapter 10.4.12 forbids
explicitly using of union members with constructors, destructors or assignment
operations.

So we use a set() method instead of the assignment operator.  Ugly, but hey,
that's life.

Cherry-pick from harfbuzz-ng repo.
pango/opentype/hb-open-type-private.hh
pango/opentype/hb-ot-layout-common-private.hh