@@ -1584,9 +1584,13 @@ template <> inline std::string toString(std::string t) { return t; }
1584
1584
1585
1585
template <> inline std::string toString (bool t) { return t ? " true" : " false" ; }
1586
1586
1587
- template <typename T> struct StringToStringView { typedef T type; };
1587
+ template <typename T> struct StringToStringView {
1588
+ typedef T type;
1589
+ };
1588
1590
1589
- template <> struct StringToStringView <std::string> { typedef std::string_view type; };
1591
+ template <> struct StringToStringView <std::string> {
1592
+ typedef std::string_view type;
1593
+ };
1590
1594
1591
1595
inline uint32_t MetricBase::resolveFullName (const std::string &n) {
1592
1596
auto it = metric_ids.find (n);
@@ -1714,8 +1718,7 @@ template <typename... Tags> struct Counter : public MetricBase {
1714
1718
1715
1719
template <typename ... T>
1716
1720
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)...})) {}
1719
1722
1720
1723
SimpleCounter resolve (Tags... f) {
1721
1724
std::vector<std::string> fields{toString (f)...};
@@ -1813,8 +1816,7 @@ template <typename... Tags> struct Histogram : public MetricBase {
1813
1816
1814
1817
template <typename ... T>
1815
1818
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)...})) {}
1818
1820
1819
1821
SimpleHistogram resolve (Tags... f) {
1820
1822
std::vector<std::string> fields{toString (f)...};
0 commit comments