浏览代码

missed a std:: in histogram

master
Pete McNeil 3 年前
父节点
当前提交
79e5a8aaae
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      histogram.hpp

+ 1
- 1
histogram.hpp 查看文件

@@ -40,7 +40,7 @@ class Histogram : public std::set<HistogramRecord> {
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.
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.
int* C; // Play naughty pointer games to access
C = const_cast<int*>(&((*iE).Count)); // the Count for this record inside the

正在加载...
取消
保存