Closed yjbanov closed 9 years ago
Counters cannot be const because the map inside it is not const.
Counters
const
Profiler cannot be const because Counters inside it is instantiated with new, but as explained above Counters itself cannot be const anyway.
Profiler
new
Solution: drop the const
Counters
cannot beconst
because the map inside it is notconst
.Profiler
cannot beconst
becauseCounters
inside it is instantiated withnew
, but as explained aboveCounters
itself cannot beconst
anyway.Solution: drop the
const