Added partial specialization of lt_arity ..
This commit is contained in:
parent
2a1fded254
commit
2aad10d347
1 changed files with 10 additions and 0 deletions
|
|
@ -93,6 +93,16 @@ private :
|
||||||
/// initializor
|
/// initializor
|
||||||
static SymregNode init_sequence[5] = {SymregNode::X, SymregNode::Plus, SymregNode::Min, SymregNode::Mult, SymregNode::PDiv}; // needed for intialization
|
static SymregNode init_sequence[5] = {SymregNode::X, SymregNode::Plus, SymregNode::Min, SymregNode::Mult, SymregNode::PDiv}; // needed for intialization
|
||||||
|
|
||||||
|
// MSVC does not recognize the lt_arity<Node> in eoParseTreeDepthInit
|
||||||
|
// without this specialization ...
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
template <>
|
||||||
|
bool lt_arity(const SymregNode &node1, const SymregNode &node2)
|
||||||
|
{
|
||||||
|
return (node1.arity() < node2.arity());
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
// saving, loading
|
// saving, loading
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue