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:
parent
9b1524ec00
commit
ab95b3fd97
2 changed files with 4 additions and 4 deletions
|
|
@ -539,13 +539,13 @@ class eoGeneralIntBounds : public eoIntBounds
|
|||
{
|
||||
public:
|
||||
/** Ctor: from a string, chooses the type of bound */
|
||||
eoGeneralIntBounds(std::string _s)
|
||||
eoGeneralIntBounds(std::string _s = "[-infinity,+infinity]")
|
||||
{
|
||||
repBound = getBoundsFromString(_s);
|
||||
}
|
||||
|
||||
/** Need a Cpy Ctor because we are allocating memory */
|
||||
eoGeneralIntBounds(eoGeneralIntBounds & _b)
|
||||
eoGeneralIntBounds(const eoGeneralIntBounds & _b)
|
||||
{
|
||||
// replicate the embedded bound (I'm pretty sure there is another
|
||||
// way to do that !!!
|
||||
|
|
|
|||
|
|
@ -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 !!!
|
||||
|
|
|
|||
Reference in a new issue