[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Rename variant and lex_symbols options
From: |
Hans Aberg |
Subject: |
Re: Rename variant and lex_symbols options |
Date: |
Tue, 14 Feb 2012 10:44:48 +0100 |
On 14 Feb 2012, at 10:11, Akim Demaille wrote:
>>>> %token <::std::string> TEXT;
>>>> %token <int> NUMBER;
>>>>
>>>> list:
>>>> /* nothing */ { /* Generates an empty string list */ }
>>>> | list item { std::swap ($$, $1); $$.push_back ($2); }
>>>> ;
>>
>> C++11 allows unions having members of types with non-trivial
>> constructors/destructors, which however, must be called explicitly.
> I don't plan to require C++11 for Bison generated parsers.
It will only be required when using %union and putting a type with non-trivial
constructors/destructors into that union.
> That's way too early.
GCC 4.6 supports unrestricted unions.
Hans