@@ -1712,8 +1712,9 @@ struct SimpleHistogram {
17121712template <typename ... Tags> struct Counter : public MetricBase {
17131713 static Counter<Tags...> *New (std::string_view name, MetricTagDescriptor<Tags>... fieldnames);
17141714
1715- Counter<Tags...>(std::string_view name, MetricTagDescriptor<Tags>... descriptors)
1716- : Counter<Tags...>(std::string(name), std::vector<MetricTag>({toMetricTag (descriptors)...})) {
1715+ template <typename ... T>
1716+ Counter (std::string_view name, MetricTagDescriptor<T>... descriptors)
1717+ : Counter<T...>(std::string(name), std::vector<MetricTag>({toMetricTag (descriptors)...})) {
17171718 }
17181719
17191720 SimpleCounter resolve (Tags... f) {
@@ -1763,8 +1764,9 @@ inline Counter<Tags...> *Counter<Tags...>::New(std::string_view name,
17631764template <typename ... Tags> struct Gauge : public MetricBase {
17641765 static Gauge<Tags...> *New (std::string_view name, MetricTagDescriptor<Tags>... fieldnames);
17651766
1766- Gauge<Tags...>(std::string_view name, MetricTagDescriptor<Tags>... descriptors)
1767- : Gauge<Tags...>(std::string(name), std::vector<MetricTag>({toMetricTag (descriptors)...})) {}
1767+ template <typename ... T>
1768+ Gauge (std::string_view name, MetricTagDescriptor<T>... descriptors)
1769+ : Gauge<T...>(std::string(name), std::vector<MetricTag>({toMetricTag (descriptors)...})) {}
17681770
17691771 SimpleGauge resolve (Tags... f) {
17701772 std::vector<std::string> fields{toString (f)...};
@@ -1809,8 +1811,9 @@ inline Gauge<Tags...> *Gauge<Tags...>::New(std::string_view name,
18091811template <typename ... Tags> struct Histogram : public MetricBase {
18101812 static Histogram<Tags...> *New (std::string_view name, MetricTagDescriptor<Tags>... fieldnames);
18111813
1812- Histogram<Tags...>(std::string_view name, MetricTagDescriptor<Tags>... descriptors)
1813- : Histogram<Tags...>(std::string(name),
1814+ template <typename ... T>
1815+ Histogram (std::string_view name, MetricTagDescriptor<T>... descriptors)
1816+ : Histogram<T...>(std::string(name),
18141817 std::vector<MetricTag>({toMetricTag (descriptors)...})) {}
18151818
18161819 SimpleHistogram resolve (Tags... f) {
0 commit comments