warning hunting

This commit is contained in:
gustavo 2000-05-25 11:03:00 +00:00
commit 0363af1289
13 changed files with 153 additions and 145 deletions

View file

@ -35,29 +35,29 @@
template <class EOT>
class eoSequentialGOpSel : public eoGOpSelector<EOT>
{
public :
virtual ~eoSequentialGOpSel(void) {}
virtual eoGeneralOp<EOT>& selectOp()
{
combined.clear();
for (int i = 0; i < size(); ++i)
{
if (operator[](i) == 0)
continue;
if (rng.flip(getRates()[i]))
combined.addOp(operator[](i));
}
return combined;
}
private :
eoCombinedOp<EOT> combined;
public :
virtual ~eoSequentialGOpSel(void) {}
virtual eoGeneralOp<EOT>& selectOp()
{
combined.clear();
for (unsigned i = 0; i < size(); ++i)
{
if (operator[](i) == 0)
continue;
if (rng.flip(getRates()[i]))
combined.addOp(operator[](i));
}
return combined;
}
private :
eoCombinedOp<EOT> combined;
};
#endif