From: Steve Raasch Date: Thu, 6 Nov 2003 17:57:06 +0000 (-0500) Subject: Nat's fix for compile bug X-Git-Tag: m5_1.0_beta2~282 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9915bd17c2bf8dec79efcd4d50f890c174cbc477;p=gem5.git Nat's fix for compile bug base/statistics.hh: Too many "const"'s --HG-- extra : convert_revision : b38303f2e6b415e6bcc520da80e89d99b6976d23 --- diff --git a/base/statistics.hh b/base/statistics.hh index f6c421fb5..28c380602 100644 --- a/base/statistics.hh +++ b/base/statistics.hh @@ -2280,7 +2280,7 @@ struct StatBin : public GenBin enum { binned = true }; Bin() { allocate(sizeof(Storage)); } bool initialized() const { return true; } - void init(const Params ¶ms) { } + void init(Params ¶ms) { } int size() const { return 1; } @@ -2320,7 +2320,7 @@ struct StatBin : public GenBin VectorBin() : _size(0) {} bool initialized() const { return _size > 0; } - void init(int s, const Params ¶ms) { + void init(int s, Params ¶ms) { assert(!initialized()); assert(s > 0); _size = s; @@ -2379,7 +2379,7 @@ struct NoBin } bool initialized() const { return true; } - void init(const Params ¶ms) { + void init(Params ¶ms) { new (ptr) Storage(params); } int size() const{ return 1; } @@ -2420,7 +2420,7 @@ struct NoBin } 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(!initialized()); _size = s;