From fc64f601f707a052adea5122f84014baf1627ffa Mon Sep 17 00:00:00 2001 From: npwoods Date: Sun, 17 Apr 2022 18:07:47 -0400 Subject: Fixed string constructor for fs::meta_value (#9580) In absence of a constructor that explicitly took 'const char *', passing a const char * would be interpretted as a bool --- src/lib/formats/fsmeta.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/formats/fsmeta.h b/src/lib/formats/fsmeta.h index 84498ea8e1e..472fc61b762 100644 --- a/src/lib/formats/fsmeta.h +++ b/src/lib/formats/fsmeta.h @@ -54,6 +54,7 @@ public: meta_value() { value = false; } meta_value(std::string &&str) { value = std::move(str); } meta_value(std::string_view str) { value = std::string(str); } + meta_value(const char *str) { value = std::string(str); } meta_value(bool b) { value = b; } meta_value(int32_t num) { value = uint64_t(num); } meta_value(uint32_t num) { value = uint64_t(num); } -- cgit v1.2.3