title: Error 3 error C2440: 'initializing' : cannot convert from 'void *' to 'Socket *'
body: <p>I have problem when I implamante default constructor but I have error </p>
  
  <blockquote>
    <p>Error 3   error C2440: 'initializing' : cannot convert from 'void *' to
    'Socket *'    Webserver.h 164 1   Project2_SocketLib</p>
  </blockquote>
  
  <pre><code>Socket.h
      //SOCKET Accept(sockaddr* clientInfo,int* clientInfoSize)
      SOCKET Accept()
      {
          static int size = sizeof(sockaddr);
          return accept(this-&gt;hSocket, 0,0);
      }
  Webserver.h
      Webserver(short port_to_listen,request_func rf,HWND Hwnd, WPARAM wParam, LPARAM lParam)
      {
          Socket in(port_to_listen,"INADDR_ANY", true, Hwnd, true);
  
          //request_func = rf;
  
          while (1) {
              Socket* ptr_s =(void*) in.Accept();
  
              unsigned ret;
              _beginthreadex(0,0,Request, ptr_s,0,&amp;ret);
          }
  
      }
  </code></pre>