]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#293,!45] Addressed review comments:
authorTomek Mrugalski <tomasz@isc.org>
Wed, 28 Nov 2018 19:56:46 +0000 (20:56 +0100)
committerTomek Mrugalski <tomasz@isc.org>
Wed, 28 Nov 2018 20:17:38 +0000 (21:17 +0100)
 - added explanation comments to io_fetch.h and io_asio_socket.h

src/lib/asiodns/io_fetch.h
src/lib/asiolink/io_asio_socket.h

index 906f63483288bfa6a1fdb5c89fba437b7c08cacf..832355f6ec14cb12174a456183298f5bcb601256 100644 (file)
@@ -13,6 +13,9 @@
 #include <boost/shared_ptr.hpp>
 #include <boost/date_time/posix_time/posix_time_types.hpp>
 
+// We want to use coroutine.hpp from the system's boost headers if possible.
+// However, very old Boost versions (provided by RHEL 7 or CentOS 7) didn't have
+// this header. So we can resort to our bundled version, but only if necessary.
 #ifdef HAVE_BOOST_ASIO_COROUTINE_HPP
 #include <boost/asio/coroutine.hpp>
 #else
index e583566e9898e8ceaaa2267e7a8c8813b1b15be8..29ca97f22681277d9a6da1f1a587ce15c1ac5185 100644 (file)
@@ -24,6 +24,9 @@
 #include <asiolink/io_error.h>
 #include <asiolink/io_socket.h>
 
+// We want to use coroutine.hpp from the system's boost headers if possible.
+// However, very old Boost versions (provided by RHEL 7 or CentOS 7) didn't have
+// this header. So we can resort to our bundled version, but only if necessary.
 #ifndef HAVE_BOOST_ASIO_COROUTINE_HPP
 #include <ext/coroutine/coroutine.hpp>
 #else