[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Improve variants
From: |
Akim Demaille |
Subject: |
Re: Improve variants |
Date: |
Sat, 8 Sep 2018 15:09:03 +0200 |
> Le 25 juin 2016 à 11:41, Mehdi Benharrats <address@hidden> a écrit :
>
> Hi,
> I would be happy to help the bison project. I think I can improve the variant
> class to have a minimal alignment (and to assure its protability, which is
> currently not guaranteed), but I think I need some C++11 stuff to make things
> easier. So here comes the question : is it possible to use C++11 for this
> class ? I can also write this class with a #if directive, thus the user will
> be able to use it only if he has a C++11 compiler.
> If the answer is no, I will try to do it without C++11.
> Thanks in advance for your answer.
Hi Mehdi,
Help will be gladly accepted! If you think you can improve the
implementation, please send contributions.
We cannot require C++11, yet it is acceptable to use __cplusplus
to check the version of the language, and use C++11 features
conditionally, just like what you suggested.
Note that I’m currently working on the variants for Bison 3.2, so
that they support move-semantics. Be sure to keep in touch before
starting working on this, so that we don’t step on each other’s toes.
Cheers,
Akim
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Improve variants,
Akim Demaille <=