@@ -1584,9 +1584,13 @@ template <> inline std::string toString(std::string t) { return t; }
15841584
15851585template <> inline std::string toString (bool t) { return t ? " true" : " false" ; }
15861586
1587- template <typename T> struct StringToStringView { typedef T type; };
1587+ template <typename T> struct StringToStringView {
1588+ typedef T type;
1589+ };
15881590
1589- template <> struct StringToStringView <std::string> { typedef std::string_view type; };
1591+ template <> struct StringToStringView <std::string> {
1592+ typedef std::string_view type;
1593+ };
15901594
15911595inline uint32_t MetricBase::resolveFullName (const std::string &n) {
15921596 auto it = metric_ids.find (n);
@@ -1714,8 +1718,7 @@ template <typename... Tags> struct Counter : public MetricBase {
17141718
17151719 template <typename ... T>
17161720 Counter (std::string_view name, MetricTagDescriptor<T>... descriptors)
1717- : Counter<T...>(std::string(name), std::vector<MetricTag>({toMetricTag (descriptors)...})) {
1718- }
1721+ : Counter<T...>(std::string(name), std::vector<MetricTag>({toMetricTag (descriptors)...})) {}
17191722
17201723 SimpleCounter resolve (Tags... f) {
17211724 std::vector<std::string> fields{toString (f)...};
@@ -1813,8 +1816,7 @@ template <typename... Tags> struct Histogram : public MetricBase {
18131816
18141817 template <typename ... T>
18151818 Histogram (std::string_view name, MetricTagDescriptor<T>... descriptors)
1816- : Histogram<T...>(std::string(name),
1817- std::vector<MetricTag>({toMetricTag (descriptors)...})) {}
1819+ : Histogram<T...>(std::string(name), std::vector<MetricTag>({toMetricTag (descriptors)...})) {}
18181820
18191821 SimpleHistogram resolve (Tags... f) {
18201822 std::vector<std::string> fields{toString (f)...};
0 commit comments