Removed the #ifdef that protected the lt_arity avaints MSVC (!!!)
This commit is contained in:
parent
6ddec3bdce
commit
87d733dda5
1 changed files with 5 additions and 2 deletions
|
|
@ -95,13 +95,16 @@ static SymregNode init_sequence[5] = {SymregNode::X, SymregNode::Plus, SymregNod
|
||||||
|
|
||||||
// MSVC does not recognize the lt_arity<Node> in eoParseTreeDepthInit
|
// MSVC does not recognize the lt_arity<Node> in eoParseTreeDepthInit
|
||||||
// without this specialization ...
|
// without this specialization ...
|
||||||
#ifdef _MSC_VER
|
// 2 months later, it seems it does not accept this definition ...
|
||||||
|
// but dies accept the lt_arity<Node> in eoParseTreeDepthInit
|
||||||
|
// !!!
|
||||||
|
// #ifdef _MSC_VER
|
||||||
template <>
|
template <>
|
||||||
bool lt_arity(const SymregNode &node1, const SymregNode &node2)
|
bool lt_arity(const SymregNode &node1, const SymregNode &node2)
|
||||||
{
|
{
|
||||||
return (node1.arity() < node2.arity());
|
return (node1.arity() < node2.arity());
|
||||||
}
|
}
|
||||||
#endif
|
// #endif
|
||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
// saving, loading
|
// saving, loading
|
||||||
|
|
|
||||||
Reference in a new issue