Use dup() instead of move semantics for Network::Socket

This commit is contained in:
Keith Winstein
2012-11-23 13:31:23 -05:00
parent 05ec364b7d
commit 6a16eecce0
2 changed files with 12 additions and 14 deletions
+1 -3
View File
@@ -107,11 +107,9 @@ namespace Network {
{
private:
int _fd;
mutable bool _moved;
public:
int fd( void ) const { assert( !_moved ); return _fd; }
void move( void ) const { assert( !_moved ); _moved = true; }
int fd( void ) const { return _fd; }
Socket();
~Socket();