From c072474a3a93f6a3b4453a81bb2f84bc697de84a Mon Sep 17 00:00:00 2001 From: Wesley Ranger Date: Fri, 29 Sep 2017 17:18:56 +0800 Subject: [PATCH] Bugfix: "ambiguous call to 'select'" caused by aslLevelSetLinear.cxx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The fixed statement needs an extra "type" parameter to avoid the “call to 'select' is ambiguous” error. This issue affects all level set examples. --- src/num/aslLevelSetLinear.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/num/aslLevelSetLinear.cxx b/src/num/aslLevelSetLinear.cxx index a483a3f..bb13112 100644 --- a/src/num/aslLevelSetLinear.cxx +++ b/src/num/aslLevelSetLinear.cxx @@ -183,7 +183,8 @@ namespace asl //DistFNormalization::scaleFactor); kk << (newDistance = select(newDistance/DistFNormalization::scaleFactor, newDistance/(1. - newDistance), - newDistance*subVE(distanceTVE->values, 0) < 0)); + newDistance*subVE(distanceTVE->values, 0) < 0, + type)); // kk << assignmentSafe (distanceFieldInternalData->getSubContainer(), // select( newDistance,