From: Fred Morcos Date: Thu, 17 Oct 2024 13:45:18 +0000 (+0200) Subject: Fix std::string include in lmdb-typed header X-Git-Tag: rec-5.2.0-alpha1~23^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51b0b005037260570964e240575a5b402e7e28da;p=thirdparty%2Fpdns.git Fix std::string include in lmdb-typed header --- diff --git a/ext/lmdb-safe/lmdb-typed.hh b/ext/lmdb-safe/lmdb-typed.hh index be5608f718..626c201713 100644 --- a/ext/lmdb-safe/lmdb-typed.hh +++ b/ext/lmdb-safe/lmdb-typed.hh @@ -11,6 +11,7 @@ #include #include #include +#include #include "lmdb-safe.hh" @@ -73,7 +74,7 @@ inline std::string keyConv(const T& value); template ::value, T>::type* = nullptr> inline std::string keyConv(const T& value) { - return string{(char*)&value, sizeof(value)}; + return std::string{(char*)&value, sizeof(value)}; } /** @@ -151,7 +152,7 @@ struct LMDBIndexOps MDBInVal combined(scombined); // if the entry existed already, this will just update the timestamp/txid in the LS header. This is intentional, so objects and their indexes always get synced together. - txn->put(d_idx, combined, string{}, flags); + txn->put(d_idx, combined, std::string{}, flags); } void del(MDBRWTransaction& txn, const Class& type, uint32_t idVal)