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
|
|
@ -45,8 +45,6 @@ typedef eoPop<EoType> Pop;
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
// SC debug
|
|
||||||
#ifdef NEVERDEF // patch to make run the installation of EO
|
|
||||||
|
|
||||||
// the vector containing the possible nodes
|
// the vector containing the possible nodes
|
||||||
vector<Node> initSequence;
|
vector<Node> initSequence;
|
||||||
|
|
@ -161,7 +159,6 @@ int main(int argc, char *argv[])
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // NEVERDEF
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,8 @@
|
||||||
#ifndef _NODE_H
|
#ifndef _NODE_H
|
||||||
#define _NODE_H
|
#define _NODE_H
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <cmath> // for finite(double) function
|
#include <cmath> // for finite(double) function
|
||||||
|
|
@ -57,15 +59,18 @@ struct Operation
|
||||||
typedef string Label;
|
typedef string Label;
|
||||||
|
|
||||||
|
|
||||||
|
// if your compiler allows you to have nameless unions you can make this a
|
||||||
union
|
// union by removing the //'s below
|
||||||
{
|
|
||||||
|
//union
|
||||||
|
//{
|
||||||
UnaryFunction uFunction;
|
UnaryFunction uFunction;
|
||||||
BinaryFunction bFunction;
|
BinaryFunction bFunction;
|
||||||
VariableID id;
|
VariableID id;
|
||||||
double constant;
|
double constant;
|
||||||
};
|
//};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Label label;
|
Label label;
|
||||||
Type type;
|
Type type;
|
||||||
|
|
|
||||||
Reference in a new issue