bug-bison
[Top][All Lists]
Advanced

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

Re: bison 3.0.4 %destructor is c++ mode seems to be called even in the n


From: Kaz Kylheku
Subject: Re: bison 3.0.4 %destructor is c++ mode seems to be called even in the normal parse
Date: Thu, 18 Aug 2016 12:37:45 -0700
User-agent: Roundcube Webmail/0.9.2

On 18.08.2016 12:05, Min Wang wrote:
HI
@kaz. thanks. I will check the %union later

I'like to use the smart pointers ( std::unique_ptr) , but somehow I got some compiler errors.

here are some details:
e.g:

using PROG_PTR = std::unique_ptr<PROG>;

"using" is now a full-blown alternative for typedef?

I don't keep up closely with the C++ standard.

The old-fashioned way is:

 typedef std::unique_ptr<PROG> PROG_PTR;

The "using" that I remember was purely for bringing long, qualified names into the current scope as short names, not for creating alias names for types.

using foo::bar::baz; // the unqualified name baz can now be used in this scope



reply via email to

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