Browse Source

missed a std:: in histogram

master
Pete McNeil 4 years ago
parent
commit
79e5a8aaae
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      histogram.hpp

+ 1
- 1
histogram.hpp View File

int hit(const int EventKey, const int Adjustment = 1) { // hit() method increments a specific count. int hit(const int EventKey, const int Adjustment = 1) { // hit() method increments a specific count.
HistogramRecord E(EventKey); // First, make a record for the event key. HistogramRecord E(EventKey); // First, make a record for the event key.
insert(E); // Insert the new record (if it's not there). insert(E); // Insert the new record (if it's not there).
set<HistogramRecord>::iterator iE = // Find either the pre-existing or the new
std::set<HistogramRecord>::iterator iE = // Find either the pre-existing or the new
find(E); // record for this key. find(E); // record for this key.
int* C; // Play naughty pointer games to access int* C; // Play naughty pointer games to access
C = const_cast<int*>(&((*iE).Count)); // the Count for this record inside the C = const_cast<int*>(&((*iE).Count)); // the Count for this record inside the

Loading…
Cancel
Save