[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
- [PATCH 0/7] {maint} minor issues, Akim Demaille, 2013/09/19
- [PATCH 1/7] tests: remove stray debugging traces, Akim Demaille, 2013/09/19
- [PATCH 3/7] examples: improve the output of the "variant" example, Akim Demaille, 2013/09/19
- [PATCH 4/7] glr: better use of tracing macros, Akim Demaille, 2013/09/19
- [PATCH 6/7] glr: shorten scopes, Akim Demaille, 2013/09/19
- [PATCH 2/7] variant: remove useless assertion,
Akim Demaille <=
- [PATCH 7/7] glr: more assertions, Akim Demaille, 2013/09/19
- [PATCH 5/7] glr: formatting changes, Akim Demaille, 2013/09/19