mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
hist: add default constructor
This commit is contained in:
parent
6887e653c5
commit
627b5f316d
2 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ public:
|
|||
using cnt_t = uintmax_t;
|
||||
|
||||
/** Initialize struct hist with supplied values and allocate memory for buckets. */
|
||||
Hist(int buckets, cnt_t warmup);
|
||||
Hist(int buckets = 0, cnt_t warmup = 0);
|
||||
|
||||
/** Free the dynamically allocated memory. */
|
||||
~Hist();
|
||||
|
|
|
@ -33,7 +33,7 @@ TestSuite(hist, .description = "Histogram");
|
|||
|
||||
Test(hist, simple) {
|
||||
|
||||
Hist h(0, 0);
|
||||
Hist h;
|
||||
|
||||
for (unsigned i = 0; i < ARRAY_LEN(test_data); i++)
|
||||
h.put(test_data[i]);
|
||||
|
|
Loading…
Add table
Reference in a new issue