The nameless union in node.h has been removed because not all compilers
support it.
This commit is contained in:
parent
5897d0062f
commit
0bbe7b84cb
2 changed files with 9 additions and 7 deletions
|
|
@ -20,6 +20,8 @@
|
|||
#ifndef _NODE_H
|
||||
#define _NODE_H
|
||||
|
||||
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <cmath> // for finite(double) function
|
||||
|
|
@ -57,15 +59,18 @@ struct Operation
|
|||
typedef string Label;
|
||||
|
||||
|
||||
|
||||
union
|
||||
{
|
||||
// if your compiler allows you to have nameless unions you can make this a
|
||||
// union by removing the //'s below
|
||||
|
||||
//union
|
||||
//{
|
||||
UnaryFunction uFunction;
|
||||
BinaryFunction bFunction;
|
||||
VariableID id;
|
||||
double constant;
|
||||
};
|
||||
//};
|
||||
|
||||
|
||||
|
||||
Label label;
|
||||
Type type;
|
||||
|
|
|
|||
Reference in a new issue