diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2019-01-30 16:52:07 -0500 |
---|---|---|
committer | Henrik Edin <henrik.edin@mongodb.com> | 2019-02-01 17:06:10 -0500 |
commit | 66430d75e33827da60195deb317058c71f75e03f (patch) | |
tree | 8ca6fcca749a630afca95415638052ed429d2e70 /src/mongo/util/dns_query_windows-impl.h | |
parent | 2dc3359cfe83cafa0f450a0dc7e2815f48ad08b4 (diff) | |
download | mongo-66430d75e33827da60195deb317058c71f75e03f.tar.gz |
SERVER-38176 Compile with /permissive- on MSVC to make the compiler strictly standard conformant.
Diffstat (limited to 'src/mongo/util/dns_query_windows-impl.h')
-rw-r--r-- | src/mongo/util/dns_query_windows-impl.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mongo/util/dns_query_windows-impl.h b/src/mongo/util/dns_query_windows-impl.h index 65395da16b4..ba2940196d5 100644 --- a/src/mongo/util/dns_query_windows-impl.h +++ b/src/mongo/util/dns_query_windows-impl.h @@ -154,8 +154,14 @@ public: explicit DNSResponse(std::string service, PDNS_RECORDA initialResults) : _service(std::move(service)), _results(initialResults, freeDnsRecord) {} - class iterator : public std::iterator<std::forward_iterator_tag, ResourceRecord> { + class iterator { public: + using iterator_category = std::forward_iterator_tag; + using value_type = ResourceRecord; + using difference_type = std::ptrdiff_t; + using pointer = value_type*; + using reference = value_type&; + const ResourceRecord& operator*() { this->_populate(); return this->_storage; |