]> granicus.if.org Git - pdns/commitdiff
Boost string_view only appeared in Boost 1.61, not 1.54 as we were assuming
authorbert hubert <bert.hubert@netherlabs.nl>
Wed, 10 Apr 2019 13:44:08 +0000 (15:44 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Wed, 10 Apr 2019 13:44:08 +0000 (15:44 +0200)
modules/lmdbbackend/lmdb-safe.hh
modules/lmdbbackend/lmdbbackend.cc

index de04d320857bbd343fe76e1c5ab350d2b2002c0c..de5e9aef850312848d10656c58432caff2a2d4b0 100644 (file)
@@ -13,7 +13,7 @@
 // apple compiler somehow has string_view even in c++11!
 #if __cplusplus < 201703L && !defined(__APPLE__)
 #include <boost/version.hpp>
-#if BOOST_VERSION > 105400
+#if BOOST_VERSION >= 106100
 #include <boost/utility/string_view.hpp>
 using boost::string_view;
 #else
index 58c61e5c17e4b253e492d97d45616c8f7bdc1d21..ea152739caa20124aeb871fb2364483a7a9f26b1 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)