util/bitset: Make C++ wrapper trivially constructible.
authorFrancisco Jerez <currojerez@riseup.net>
Sun, 25 Feb 2018 02:37:34 +0000 (18:37 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 27 Feb 2018 19:38:18 +0000 (11:38 -0800)
commit69b4a9d21d00e1f72b52e818cc059ee1642f263e
tree68506ea49d7ffebb4c0d317c9c80fbd6b2c104ee
parent9f223d860b6fed0ae296bcd1b8ae14dca66a7986
util/bitset: Make C++ wrapper trivially constructible.

In order to fix a build failure on compilers not implementing
unrestricted unions, which is a C++11 feature.

v2: Provide signed integer comparison and assignment operators instead
    of BITSET_WORD ones to avoid spurious ambiguity warnings on
    comparisons with a signed integer literal.

Fixes: ba79a90fb52e1e81fb "glsl: Switch ast_type_qualifier to a 128-bit bitset."
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105238
Tested-by: Roland Scheidegger <sroland@vmware.com>
Tested-By: George Kyriazis <george.kyriazis@intel.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/compiler/glsl/ast.h
src/compiler/glsl/glsl_parser.yy
src/util/bitset.h