mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
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").
This commit is contained in:
@@ -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> ();
|
||||
|
||||
Reference in New Issue
Block a user