Fix compile error with VS

This commit is contained in:
Kirigaya Kazuto 2018-05-09 21:30:34 +08:00
parent 6aebdca0bc
commit ffcfcb5baf
2 changed files with 4 additions and 4 deletions

View File

@ -217,7 +217,7 @@ int sock::setrecvtime(int Second)
}
//forgive me, but writing code in hospital is really not a good experience.
typedef int (*_sock_getname_callback_t)(int,sockaddr*,socklen_t*);
using _sock_getname_callback_t = decltype(getsockname);
static int _sock_getname_call(int sfd,std::string& ip,int& port,_sock_getname_callback_t fn)
{

View File

@ -15,11 +15,11 @@ protected:
vsock();
vsock(const vsock&)=delete;
vsock& operator = (const vsock&)=delete;
vsock(vsock&&);
vsock& operator = (vsock&&);
vsock(vsock&& v);
vsock& operator = (vsock&& v);
~vsock();
vsock(int);
//vsock(int);
struct _impl;
_impl* _vp;