Commit c2a60049 authored by Praveen Kumar's avatar Praveen Kumar Committed by Andre Azevedo

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
parent 72683c85
...@@ -59,6 +59,8 @@ namespace folly { ...@@ -59,6 +59,8 @@ namespace folly {
class AsyncServerSocket : public DelayedDestruction { class AsyncServerSocket : public DelayedDestruction {
public: public:
typedef std::unique_ptr<AsyncServerSocket, Destructor> UniquePtr; typedef std::unique_ptr<AsyncServerSocket, Destructor> UniquePtr;
// Disallow copy, move, and default construction.
AsyncServerSocket(AsyncServerSocket&&) = delete;
class AcceptCallback { class AcceptCallback {
public: public:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment