@@ -1712,9 +1712,9 @@ struct SimpleHistogram {
1712
1712
template <typename ... Tags> struct Counter : public MetricBase {
1713
1713
static Counter<Tags...> *New (std::string_view name, MetricTagDescriptor<Tags>... fieldnames);
1714
1714
1715
- Counter<Tags...>(std::string_view name, MetricTagDescriptor<Tags> ... descriptors)
1716
- : Counter<Tags...> (std::string( name), std::vector<MetricTag>({ toMetricTag (descriptors) ...})) {
1717
- }
1715
+ template < typename ... T>
1716
+ Counter (std::string_view name, MetricTagDescriptor<T> ... descriptors)
1717
+ : Counter<T...>(std::string(name), std::vector<MetricTag>({ toMetricTag (descriptors)...})) { }
1718
1718
1719
1719
SimpleCounter resolve (Tags... f) {
1720
1720
std::vector<std::string> fields{toString (f)...};
@@ -1763,8 +1763,9 @@ inline Counter<Tags...> *Counter<Tags...>::New(std::string_view name,
1763
1763
template <typename ... Tags> struct Gauge : public MetricBase {
1764
1764
static Gauge<Tags...> *New (std::string_view name, MetricTagDescriptor<Tags>... fieldnames);
1765
1765
1766
- Gauge<Tags...>(std::string_view name, MetricTagDescriptor<Tags>... descriptors)
1767
- : Gauge<Tags...>(std::string(name), std::vector<MetricTag>({toMetricTag (descriptors)...})) {}
1766
+ template <typename ... T>
1767
+ Gauge (std::string_view name, MetricTagDescriptor<T>... descriptors)
1768
+ : Gauge<T...>(std::string(name), std::vector<MetricTag>({toMetricTag (descriptors)...})) {}
1768
1769
1769
1770
SimpleGauge resolve (Tags... f) {
1770
1771
std::vector<std::string> fields{toString (f)...};
@@ -1809,9 +1810,9 @@ inline Gauge<Tags...> *Gauge<Tags...>::New(std::string_view name,
1809
1810
template <typename ... Tags> struct Histogram : public MetricBase {
1810
1811
static Histogram<Tags...> *New (std::string_view name, MetricTagDescriptor<Tags>... fieldnames);
1811
1812
1812
- Histogram<Tags...>(std::string_view name, MetricTagDescriptor<Tags> ... descriptors)
1813
- : Histogram<Tags...> (std::string( name),
1814
- std::vector<MetricTag>({toMetricTag (descriptors)...})) {}
1813
+ template < typename ... T>
1814
+ Histogram (std::string_view name, MetricTagDescriptor<T>... descriptors)
1815
+ : Histogram<T...>(std::string(name), std::vector<MetricTag>({toMetricTag (descriptors)...})) {}
1815
1816
1816
1817
SimpleHistogram resolve (Tags... f) {
1817
1818
std::vector<std::string> fields{toString (f)...};
0 commit comments