Corrected some bugs in eoGeneralXXXBounds (e.g. no const in copy Ctor arguments)

Added a default value for the intialization (-infty, +infty)
Needs to allow uniform() on unbounded - still pondering
This commit is contained in:
evomarc 2004-11-29 20:49:34 +00:00
commit ab95b3fd97
2 changed files with 4 additions and 4 deletions

View file

@ -504,13 +504,13 @@ class eoGeneralRealBounds : public eoRealBounds
{
public:
/** Ctor: from a string, chooses the type of bound */
eoGeneralRealBounds(std::string _s)
eoGeneralRealBounds(std::string _s = "[-infinity,+infinity]")
{
repBound = getBoundsFromString(_s);
}
/** Need a Cpy Ctor because we are allocating memory */
eoGeneralRealBounds(eoGeneralRealBounds & _b)
eoGeneralRealBounds(const eoGeneralRealBounds & _b)
{
// replicate the embedded bound (I'm pretty sure there is another
// way to do that !!!