From 66b03e134fd851db9de1f57f8fe110799375234e Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Thu, 19 Sep 2013 15:03:01 +0200 Subject: [PATCH] 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"). --- data/variant.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 (); -- 2.50.0