diff --git a/data/skeletons/variant.hh b/data/skeletons/variant.hh index c37bdd42..736a2677 100644 --- a/data/skeletons/variant.hh +++ b/data/skeletons/variant.hh @@ -133,10 +133,10 @@ m4_define([b4_value_type_declare], template T& emplace (U&&... u) - {]b4_parse_assert_if([ + {]b4_parse_assert_if([[ YY_ASSERT (!yytypeid_); YY_ASSERT (sizeof (T) <= size); - yytypeid_ = & typeid (T);])[ + yytypeid_ = & typeid (T);]])[ return *new (yyas_ ()) T (std::forward (u)...); } # else @@ -144,10 +144,10 @@ m4_define([b4_value_type_declare], template T& emplace () - {]b4_parse_assert_if([ + {]b4_parse_assert_if([[ YY_ASSERT (!yytypeid_); YY_ASSERT (sizeof (T) <= size); - yytypeid_ = & typeid (T);])[ + yytypeid_ = & typeid (T);]])[ return *new (yyas_ ()) T (); } @@ -155,10 +155,10 @@ m4_define([b4_value_type_declare], template T& emplace (const T& t) - {]b4_parse_assert_if([ + {]b4_parse_assert_if([[ YY_ASSERT (!yytypeid_); YY_ASSERT (sizeof (T) <= size); - yytypeid_ = & typeid (T);])[ + yytypeid_ = & typeid (T);]])[ return *new (yyas_ ()) T (t); } # endif @@ -185,10 +185,10 @@ m4_define([b4_value_type_declare], template T& as () YY_NOEXCEPT - {]b4_parse_assert_if([ + {]b4_parse_assert_if([[ YY_ASSERT (yytypeid_); YY_ASSERT (*yytypeid_ == typeid (T)); - YY_ASSERT (sizeof (T) <= size);])[ + YY_ASSERT (sizeof (T) <= size);]])[ return *yyas_ (); } @@ -196,10 +196,10 @@ m4_define([b4_value_type_declare], template const T& as () const YY_NOEXCEPT - {]b4_parse_assert_if([ + {]b4_parse_assert_if([[ YY_ASSERT (yytypeid_); YY_ASSERT (*yytypeid_ == typeid (T)); - YY_ASSERT (sizeof (T) <= size);])[ + YY_ASSERT (sizeof (T) <= size);]])[ return *yyas_ (); } @@ -214,9 +214,9 @@ m4_define([b4_value_type_declare], template void swap (self_type& that) YY_NOEXCEPT - {]b4_parse_assert_if([ + {]b4_parse_assert_if([[ YY_ASSERT (yytypeid_); - YY_ASSERT (*yytypeid_ == *that.yytypeid_);])[ + YY_ASSERT (*yytypeid_ == *that.yytypeid_);]])[ std::swap (as (), that.as ()); }