diff --git a/eo/test/t-eoSymreg.cpp b/eo/test/t-eoSymreg.cpp index 9ff3f3ec..222a000d 100644 --- a/eo/test/t-eoSymreg.cpp +++ b/eo/test/t-eoSymreg.cpp @@ -93,6 +93,16 @@ private : /// initializor 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 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