예제 #1
0
 basic_raw_socket(basic_raw_socket<Protocol1, RawSocketService1>&& other,
     typename enable_if<is_convertible<Protocol1, Protocol>::value>::type* = 0)
   : basic_socket<Protocol, RawSocketService>(
       ASIO_MOVE_CAST2(basic_raw_socket<
         Protocol1, RawSocketService1>)(other))
 {
 }
예제 #2
0
 typename enable_if<is_convertible<Protocol1, Protocol>::value, basic_raw_socket>::type& operator=(
     basic_raw_socket<Protocol1, RawSocketService1>&& other )
 {
     basic_socket<Protocol, RawSocketService>::operator=(
         ASIO_MOVE_CAST2( basic_raw_socket<Protocol1, RawSocketService1> )( other ) );
     return *this;
 }
예제 #3
0
 typename enable_if<is_convertible<Protocol1, Protocol>::value,
     basic_socket_acceptor>::type& operator=(
       basic_socket_acceptor<Protocol1, SocketAcceptorService1>&& other)
 {
   basic_socket_acceptor tmp(ASIO_MOVE_CAST2(basic_socket_acceptor<
           Protocol1, SocketAcceptorService1>)(other));
   basic_io_object<SocketAcceptorService>::operator=(
       ASIO_MOVE_CAST(basic_socket_acceptor)(tmp));
   return *this;
 }