summaryrefslogtreecommitdiff
path: root/src/SessionSerializer.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2019-09-15 11:26:48 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2019-09-15 11:26:48 +0900
commit80df934955720d2b5102bed93b4612d288038113 (patch)
treef5161b03248d2f4befb9c1b20e6495e59064b8eb /src/SessionSerializer.cc
parent9f5758570a51feca6a468aea6a29377566addd87 (diff)
Fix compiler warning
Diffstat (limited to 'src/SessionSerializer.cc')
-rw-r--r--src/SessionSerializer.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/SessionSerializer.cc b/src/SessionSerializer.cc
index 86c815d8..363cb6ff 100644
--- a/src/SessionSerializer.cc
+++ b/src/SessionSerializer.cc
@@ -143,7 +143,10 @@ namespace {
template <typename T> class Unique {
typedef T type;
struct PointerCmp {
- inline bool operator()(const type* x, const type* y) { return *x < *y; }
+ inline bool operator()(const type* x, const type* y) const
+ {
+ return *x < *y;
+ }
};
std::set<const type*, PointerCmp> known;