Nat's fix for compile bug
base/statistics.hh: Too many "const"'s --HG-- extra : convert_revision : b38303f2e6b415e6bcc520da80e89d99b6976d23
This commit is contained in:
parent
07d56ae7be
commit
9915bd17c2
1 changed files with 4 additions and 4 deletions
|
@ -2280,7 +2280,7 @@ struct StatBin : public GenBin
|
||||||
enum { binned = true };
|
enum { binned = true };
|
||||||
Bin() { allocate(sizeof(Storage)); }
|
Bin() { allocate(sizeof(Storage)); }
|
||||||
bool initialized() const { return true; }
|
bool initialized() const { return true; }
|
||||||
void init(const Params ¶ms) { }
|
void init(Params ¶ms) { }
|
||||||
|
|
||||||
int size() const { return 1; }
|
int size() const { return 1; }
|
||||||
|
|
||||||
|
@ -2320,7 +2320,7 @@ struct StatBin : public GenBin
|
||||||
VectorBin() : _size(0) {}
|
VectorBin() : _size(0) {}
|
||||||
|
|
||||||
bool initialized() const { return _size > 0; }
|
bool initialized() const { return _size > 0; }
|
||||||
void init(int s, const Params ¶ms) {
|
void init(int s, Params ¶ms) {
|
||||||
assert(!initialized());
|
assert(!initialized());
|
||||||
assert(s > 0);
|
assert(s > 0);
|
||||||
_size = s;
|
_size = s;
|
||||||
|
@ -2379,7 +2379,7 @@ struct NoBin
|
||||||
}
|
}
|
||||||
|
|
||||||
bool initialized() const { return true; }
|
bool initialized() const { return true; }
|
||||||
void init(const Params ¶ms) {
|
void init(Params ¶ms) {
|
||||||
new (ptr) Storage(params);
|
new (ptr) Storage(params);
|
||||||
}
|
}
|
||||||
int size() const{ return 1; }
|
int size() const{ return 1; }
|
||||||
|
@ -2420,7 +2420,7 @@ struct NoBin
|
||||||
}
|
}
|
||||||
|
|
||||||
bool initialized() const { return ptr != NULL; }
|
bool initialized() const { return ptr != NULL; }
|
||||||
void init(int s, const Params ¶ms) {
|
void init(int s, Params ¶ms) {
|
||||||
assert(s > 0 && "size must be positive!");
|
assert(s > 0 && "size must be positive!");
|
||||||
assert(!initialized());
|
assert(!initialized());
|
||||||
_size = s;
|
_size = s;
|
||||||
|
|
Loading…
Reference in a new issue