On Sun, May 24, 2009 at 06:36:28PM +0200, Hans Aberg wrote:
|| On 22 May 2009, at 20:11, Paritosh Aggarwal wrote:
|| > %{
|| > #include
|| > #include "heading.h"
|| >
|| > using namespace std;
|| >
|| > int yyerror(char *s);
|| > int yylex(void);
|| > %}
|| >
|| > %union
|| > {
|| >
Hans Aberg ha scritto:
On 25 May 2009, at 22:11, Luca wrote:
I successfully compiled a union containing pair*
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-st
On 26 May 2009, at 22:38, Luca wrote:
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?!?
So what does the C++ standard say about it?
- and you do not say what compiler you