bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++17 skeleton with move semantics and std::variant


From: Hans Åberg
Subject: Re: C++17 skeleton with move semantics and std::variant
Date: Mon, 9 Apr 2018 00:04:06 +0200

> On 8 Apr 2018, at 23:05, Frank Heckenbach <address@hidden> wrote:

> - Uses std::variant (C++17) instead of Bison's own variant
>  implementation.
> 
>  If you don't have C++17 support yet, you can use an alternative
>  variant implementation such as https://github.com/mpark/variant .
>  Boost.Variant might also work; I have not tried it.

Akim Demaille gave two motivations on not using this: avoiding the external 
dependency, and the overhead of storing the type. I think that the C++17 
variants may have the latter, but it is not so important on modern computers.

But, anyway, GCC7 supports C++17.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]