From: Akim Demaille Date: Thu, 19 Sep 2013 13:03:01 +0000 (+0200) Subject: variant: remove useless assertion X-Git-Tag: v3.0.1~30 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/66b03e134fd851db9de1f57f8fe110799375234e?ds=sidebyside variant: remove useless assertion * data/variant.hh (move): Remove precondition assertion which is ensured by the first call of the body (this precondition is also one of "build"). --- diff --git a/data/variant.hh b/data/variant.hh index ac4f7a78..19538f6d 100644 --- a/data/variant.hh +++ b/data/variant.hh @@ -178,8 +178,7 @@ m4_define([b4_variant_define], template void move (self_type& other) - {]b4_parse_assert_if([ - YYASSERT (!yytname_);])[ + { build (); swap (other); other.destroy ();