]> git.saurik.com Git - bison.git/commit
variant: fix G++ 4.4 warnings
authorAkim Demaille <akim@lrde.epita.fr>
Tue, 19 Feb 2013 07:55:15 +0000 (08:55 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Tue, 19 Feb 2013 08:51:38 +0000 (09:51 +0100)
commit85bc7f546609ef28269c44945db09bf44f04015b
treec830d0887e4be7082e4c9aa3be2124976b2c89fd
parent1282c12476d19f452392332e725a3509ce0486d2
variant: fix G++ 4.4 warnings

The changes by Théophile Ranquet about type punning issues need
to be extend to in-place new to please G++ 4.4.7.

* data/variant.hh (variant::as_): New, factors the casts that avoid
compiler warnings.
(as, build): Use them.
data/variant.hh