-// Copyright (C) 2006-2017 CEA/DEN, EDF R&D
+// Copyright (C) 2006-2022 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+
#include "ComplexWeight.hxx"
#include "Exception.hxx"
using namespace YACS::ENGINE;
+#ifdef WIN32
+#include <algorithm>
+#endif
+
ComplexWeight::ComplexWeight()
{
setToZero();
_loopWeight=other._loopWeight;
}
-ComplexWeight& ComplexWeight::addWeight(const ComplexWeight *other)
+void ComplexWeight::addWeight(const ComplexWeight *other)
{
bool found;
if ((!_bootWeight) && ((other->isUnsetLoopWeight() && this->isDefaultValueLoop()) || (this->isUnsetLoopWeight() && other->isDefaultValueLoop())))