[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
Re: bison 3.0.4 %destructor is c++ mode seems to be called even in the normal parse
Thu, 18 Aug 2016 12:37:45 -0700
On 18.08.2016 12:05, Min Wang wrote:
@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:
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