Refer to nullptr not NULL
[folly.git] / folly / stats / Instantiations.cpp
index 74c7ee02aba22839eae28706f528fb33914cfe6f..20b4c2f12317330f6523c58fd41f07ff41f17548 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -46,13 +46,12 @@ template class TimeseriesHistogram<int64_t>;
 // are implemented using template methods.  Instantiate the default versions of
 // these methods too, so anyone using them won't also need to explicitly
 // include Histogram-defs.h
-template unsigned int detail::HistogramBuckets<
-  int64_t, Histogram<int64_t>::Bucket>::
-  getPercentileBucketIdx<Histogram<int64_t>::CountFromBucket>(
-      double pct,
-      Histogram<int64_t>::CountFromBucket countFromBucket,
-      double* lowPct,
-      double* highPct) const;
+template size_t detail::HistogramBuckets<int64_t, Histogram<int64_t>::Bucket>::
+    getPercentileBucketIdx<Histogram<int64_t>::CountFromBucket>(
+        double pct,
+        Histogram<int64_t>::CountFromBucket countFromBucket,
+        double* lowPct,
+        double* highPct) const;
 template int64_t detail::HistogramBuckets<int64_t, Histogram<int64_t>::Bucket>
   ::getPercentileEstimate<Histogram<int64_t>::CountFromBucket,
                           Histogram<int64_t>::AvgFromBucket>(