]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - modules/lmdbbackend/lmdbbackend.cc
Merge pull request #7704 from ahupowerdns/boost-stringref-cutoff
[thirdparty/pdns.git] / modules / lmdbbackend / lmdbbackend.cc
index 64d7d6a4b976bc3a9b9e2f7b1543b2fcc1856c7f..43b07a909184e067685a10baa81e37adb66a1207 100644 (file)
@@ -224,10 +224,10 @@ std::shared_ptr<DNSRecordContent> unserializeContentZR(uint16_t qtype, const DNS
    Note - domain_id, name and type are ONLY present on the index!
 */
 
-#if BOOST_VERSION <= 105400
-#define StringView string
-#else
+#if BOOST_VERSION >= 106100
 #define StringView string_view
+#else
+#define StringView string
 #endif
 
 void LMDBBackend::deleteDomainRecords(RecordsRWTransaction& txn, uint32_t domain_id, uint16_t qtype)