From b8cd1d8fa5153cc985fb01115fa8f923ecb566cd Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Mon, 5 Sep 2016 16:17:04 +0200 Subject: [PATCH] Use normal vectors on boost < 1.54 --- pdns/dnswriter.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pdns/dnswriter.cc b/pdns/dnswriter.cc index a369a8f60a..6b831f0f7d 100644 --- a/pdns/dnswriter.cc +++ b/pdns/dnswriter.cc @@ -22,7 +22,10 @@ #ifdef HAVE_CONFIG_H #include "config.h" #endif +#include +#if BOOST_VERSION >= 105400 #include +#endif #include "dnswriter.hh" #include "misc.hh" #include "dnsparser.hh" @@ -197,7 +200,11 @@ uint16_t DNSPacketWriter::lookupName(const DNSName& name, uint16_t* matchLen) */ unsigned int bestpos=0; *matchLen=0; +#if BOOST_VERSION >= 105400 boost::container::static_vector nvect, pvect; +#else + vector nvect, pvect; +#endif try { for(auto riter= raw.cbegin(); riter < raw.cend(); ) { -- 2.47.2