From 2aad10d347791814b187954578016d9afc1b3584 Mon Sep 17 00:00:00 2001 From: evomarc Date: Mon, 3 Dec 2001 14:20:24 +0000 Subject: [PATCH] Added partial specialization of lt_arity .. --- eo/test/t-eoSymreg.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) 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