Skip to content

Commit dac47fe

Browse files
committed
Fix bug when compile for c++17
1 parent f1ec38c commit dac47fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/include/prometheus/text_serializer.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
#include "prometheus/metric_family.h"
1010

11+
#if __cpp_lib_to_chars >= 201611L
12+
#include <charconv>
13+
#endif
1114

1215
namespace prometheus {
1316

0 commit comments

Comments
 (0)