]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/net: use std::optional instead of boost
authorCasey Bodley <cbodley@redhat.com>
Fri, 14 Sep 2018 17:17:44 +0000 (13:17 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 14 Sep 2018 18:46:38 +0000 (14:46 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/crimson/net/SocketMessenger.h

index a9867a20cb3f068bd8ff4def914ceff971798dbf..84e972a413ca0c9ce848005a15da66b5b31ca656 100644 (file)
@@ -15,7 +15,7 @@
 #pragma once
 
 #include <map>
-#include <boost/optional.hpp>
+#include <optional>
 #include <seastar/core/reactor.hh>
 
 #include "msg/Policy.h"
@@ -27,7 +27,7 @@ namespace ceph::net {
 using SocketPolicy = ceph::net::Policy<ceph::thread::Throttle>;
 
 class SocketMessenger final : public Messenger {
-  boost::optional<seastar::server_socket> listener;
+  std::optional<seastar::server_socket> listener;
   Dispatcher *dispatcher = nullptr;
   std::map<entity_addr_t, ConnectionRef> connections;
   using Throttle = ceph::thread::Throttle;