help-bison
[Top][All Lists]
Advanced

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

Re: %union with STL


From: Luca
Subject: Re: %union with STL
Date: Tue, 26 May 2009 22:38:53 +0200
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

Hans Aberg ha scritto:
On 25 May 2009, at 22:11, Luca wrote:

I successfully compiled a union containing pair<const string,int>* it; using bison 2.4.1. I think you can use pointers to C++ class inside a union without any trouble. Just try it.

Checking what the compiler accepts is a good way to produce non-standard source code
using a pointer inside a union is a good way to produce non-standard source code?!?
- and you do not say what compiler you used.
g++ and Visual Studio. I think it is enough...

But in the end, I think the OP problem might be due to an older version of Bison or an instantiation problem - lack of declaration or a problem with the compiler.
Simply some #include is missing...

  Hans




_______________________________________________
address@hidden http://lists.gnu.org/mailman/listinfo/help-bison






reply via email to

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