From e712550cb81df140e4390b8d725294870bc7fab7 Mon Sep 17 00:00:00 2001 From: Matias Fontanini Date: Sun, 20 Jan 2013 00:22:21 -0300 Subject: [PATCH] Move constructors are now noexcept. --- include/dns_record.h | 4 ++-- include/icmpv6.h | 1 + include/packet.h | 4 ++-- include/sniffer.h | 4 ++-- src/dns_record.cpp | 6 ++++-- src/sniffer.cpp | 4 ++-- 6 files changed, 13 insertions(+), 10 deletions(-) diff --git a/include/dns_record.h b/include/dns_record.h index 594315d..79bf17e 100644 --- a/include/dns_record.h +++ b/include/dns_record.h @@ -104,12 +104,12 @@ public: /** * Move constructor. */ - DNSResourceRecord(DNSResourceRecord &&rhs); + DNSResourceRecord(DNSResourceRecord &&rhs) noexcept; /** * Move assignment operator. */ - DNSResourceRecord& operator=(DNSResourceRecord &&rhs); + DNSResourceRecord& operator=(DNSResourceRecord &&rhs) noexcept; #endif // TINS_IS_CXX11 /** diff --git a/include/icmpv6.h b/include/icmpv6.h index 133a6fe..f171329 100644 --- a/include/icmpv6.h +++ b/include/icmpv6.h @@ -1179,6 +1179,7 @@ private: void parse_options(const uint8_t *&buffer, uint32_t &total_sz); void add_addr_list(uint8_t type, const addr_list_type &value); addr_list_type search_addr_list(Options type) const; + template