diff options
author | Akim Demaille <akim@lrde.epita.fr> | 2013-09-19 15:03:01 +0200 |
---|---|---|
committer | Akim Demaille <akim@lrde.epita.fr> | 2013-09-19 15:57:59 +0200 |
commit | 66b03e134fd851db9de1f57f8fe110799375234e (patch) | |
tree | be2e0a974f96860c41ca28df4ab285b20131177b | |
parent | 3dc50b3bc2f11909b6edf51ea6e9414228235c2e (diff) | |
download | bison-66b03e134fd851db9de1f57f8fe110799375234e.tar.gz |
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").
-rw-r--r-- | data/variant.hh | 3 |
1 files changed, 1 insertions, 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 <typename T> void move (self_type& other) - {]b4_parse_assert_if([ - YYASSERT (!yytname_);])[ + { build<T> (); swap<T> (other); other.destroy<T> (); |