Added missing instantiation for HistogramBuckets::computeTotalCount()
authorMike Kolupaev <kolmike@fb.com>
Wed, 23 Dec 2015 10:05:01 +0000 (02:05 -0800)
committerfacebook-github-bot-1 <folly-bot@fb.com>
Wed, 23 Dec 2015 10:20:23 +0000 (02:20 -0800)
commit3740c2909f5d2da22be633fda642e789d2caaf9b
treee4f01ab6f3d392aa67e46cfb583325248e918b09
parent6e8dcd61025e61bf00516122e28bd5bc29e6b923
Added missing instantiation for HistogramBuckets::computeTotalCount()

Summary:
D2078239 added a template method to HistogramBuckets but didn't add an instantiation for it, similar to getPercentileBucketIdx() and getPercentileEstimate() (see comment in Instantiations.cpp). This diff adds it, making `computeTotalCount()` usable without including `Histogram-defs.h`.

Also removes the weird `const` in return type.

Reviewed By: simpkins

Differential Revision: D2783534

fb-gh-sync-id: 9226489820116e0cbcb1f6a631b389439558061e
folly/stats/Histogram-defs.h
folly/stats/Histogram.h
folly/stats/Instantiations.cpp