Workaround a bug in template instation in MSVC 2017.3 with /permissive-
[folly.git] / folly / stats / Histogram.cpp
index 6f54a874990d542b68ec72b9371b828cf07a4793..bbf5c36ba00586111ba364a5d038c2520a967eae 100644 (file)
@@ -24,6 +24,7 @@
 #include <folly/stats/Histogram.h>
 #include <folly/stats/Histogram-defs.h>
 
+#if !FOLLY_MSVC_USE_WORKAROUND_FOR_C5037
 namespace folly {
 
 template class Histogram<int64_t>;
@@ -52,4 +53,5 @@ detail::HistogramBuckets<int64_t, Histogram<int64_t>::Bucket>::
     computeTotalCount<Histogram<int64_t>::CountFromBucket>(
         Histogram<int64_t>::CountFromBucket countFromBucket) const;
 
-} // folly
+} // namespace folly
+#endif