more adjustments for gcc-3.4 (now using optimization, go figure...)
This commit is contained in:
parent
cf4849c472
commit
7b9e6d3e1f
4 changed files with 30 additions and 31 deletions
|
|
@ -9,8 +9,7 @@
|
||||||
/// clears the memory
|
/// clears the memory
|
||||||
eoFunctorStore::~eoFunctorStore()
|
eoFunctorStore::~eoFunctorStore()
|
||||||
{
|
{
|
||||||
for (size_t i = 0; i < vec.size(); ++i)
|
for(size_t i = 0; i < vec.size(); ++i) {
|
||||||
{
|
|
||||||
delete vec[i];
|
delete vec[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ public:
|
||||||
// shuffle
|
// shuffle
|
||||||
for (int i = indices.size() - 1; i > 0; --i) {
|
for (int i = indices.size() - 1; i > 0; --i) {
|
||||||
int j = rng.random(i+1);
|
int j = rng.random(i+1);
|
||||||
swap(indices[i], indices[j]);
|
std::swap(indices[i], indices[j]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -65,8 +65,8 @@ public:
|
||||||
// else nothing
|
// else nothing
|
||||||
|
|
||||||
// stay away from 0 and 1
|
// stay away from 0 and 1
|
||||||
p[g] = min(maxBound, p[g]);
|
p[g] = std::min(maxBound, p[g]);
|
||||||
p[g] = max(minBound, p[g]);
|
p[g] = std::max(minBound, p[g]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue