Compiler bug in Build 1966 - page 2

 

It's a common practice, very useful in many terms. For instance, allows to write things like calling a function only if parameter has value and so on..

bool ModifyStopLoss(const double price=0)
  {
    if(price>0&&!ModifySL(price))   
        return false;
    return true;
  }
 

Regarding the && logic, this on C++ people call Logic Short-Circuiting where the Bollean AND will not evaluate the second member when the first evalueted to false...


;)