mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 09:43: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>
|
template <typename T>
|
||||||
void
|
void
|
||||||
move (self_type& other)
|
move (self_type& other)
|
||||||
{]b4_parse_assert_if([
|
{
|
||||||
YYASSERT (!yytname_);])[
|
|
||||||
build<T> ();
|
build<T> ();
|
||||||
swap<T> (other);
|
swap<T> (other);
|
||||||
other.destroy<T> ();
|
other.destroy<T> ();
|
||||||
|
|||||||
Reference in New Issue
Block a user