diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-06-11 21:25:19 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-06-11 21:25:19 +0900 |
| commit | 2bbec1086d42f066690048ff5890cfeb1cad25e8 (patch) | |
| tree | 3c85dfcf0f3ba9effa507c3410986cda228bae95 /src/SocketCore.h | |
| parent | 2448a8660b1daa6ba9fced4b637c7c7468782aca (diff) | |
Use std::make_shared
Diffstat (limited to 'src/SocketCore.h')
| -rw-r--r-- | src/SocketCore.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/SocketCore.h b/src/SocketCore.h index bc6d1daa..de8e6cd2 100644 --- a/src/SocketCore.h +++ b/src/SocketCore.h @@ -111,9 +111,13 @@ private: void setSockOpt(int level, int optname, void* optval, socklen_t optlen); - SocketCore(sock_t sockfd, int sockType); public: SocketCore(int sockType = SOCK_STREAM); + + // Formally, private constructor, but made public to use with + // std::make_shared. + SocketCore(sock_t sockfd, int sockType); + ~SocketCore(); sock_t getSockfd() const { return sockfd_; } |
