bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/7] variant: remove useless assertion


From: Akim Demaille
Subject: [PATCH 2/7] variant: remove useless assertion
Date: Thu, 19 Sep 2013 16:26:02 +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 | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/data/variant.hh b/data/variant.hh
index ac4f7a7..19538f6 100644
--- a/data/variant.hh
+++ b/data/variant.hh
@@ -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> ();
-- 
1.8.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]