]> git.saurik.com Git - bison.git/commitdiff
variant: remove useless assertion
authorAkim Demaille <akim@lrde.epita.fr>
Thu, 19 Sep 2013 13:03:01 +0000 (15:03 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Thu, 19 Sep 2013 13:57:59 +0000 (15:57 +0200)
* data/variant.hh (move): Remove precondition assertion which is
ensured by the first call of the body (this precondition is also one
of "build").

data/variant.hh

index ac4f7a78507c49250d12dc789e0acf70ec61ff70..19538f6d2b30d45e31a5173e58d8bddf15cfd69a 100644 (file)
@@ -178,8 +178,7 @@ m4_define([b4_variant_define],
     template <typename T>
     void
     move (self_type& other)
-    {]b4_parse_assert_if([
-      YYASSERT (!yytname_);])[
+    {
       build<T> ();
       swap<T> (other);
       other.destroy<T> ();