summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkim Demaille <akim@lrde.epita.fr>2013-09-19 15:03:01 +0200
committerAkim Demaille <akim@lrde.epita.fr>2013-09-19 15:57:59 +0200
commit66b03e134fd851db9de1f57f8fe110799375234e (patch)
treebe2e0a974f96860c41ca28df4ab285b20131177b
parent3dc50b3bc2f11909b6edf51ea6e9414228235c2e (diff)
downloadbison-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.hh3
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> ();