From c2a600499b4716a9f495427cd7012fa741d94df0 Mon Sep 17 00:00:00 2001 From: Praveen Kumar Date: Fri, 13 Mar 2015 09:11:03 +0530 Subject: [PATCH] AsyncServerSocket disallow copy, move, and default ctor Summary: AsyncServerSocket disallow copy construction, copy assignment, move construction, move assignment, and default construction. Closes https://github.com/facebook/folly/pull/148 Test Plan: all folly/tests, make check for 37 tests, passed. Reviewed By: ldbrandy@fb.com Subscribers: lins, anca, folly-diffs@, yfeldblum FB internal diff: D1912488 Signature: t1:1912488:1426267982:a9690ce9429016f89630f0ded64b7be9ff80c39d --- folly/io/async/AsyncServerSocket.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/folly/io/async/AsyncServerSocket.h b/folly/io/async/AsyncServerSocket.h index a96f49fe..46576aa2 100644 --- a/folly/io/async/AsyncServerSocket.h +++ b/folly/io/async/AsyncServerSocket.h @@ -59,6 +59,8 @@ namespace folly { class AsyncServerSocket : public DelayedDestruction { public: typedef std::unique_ptr UniquePtr; + // Disallow copy, move, and default construction. + AsyncServerSocket(AsyncServerSocket&&) = delete; class AcceptCallback { public: -- 2.34.1