No Viable function warning

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

No Viable function warning

Boost - Dev mailing list
Hello i've the bellow function :


__declspec(dllexport) int TrySendData(_isocket * isocket,char * ibuff,int
ilen)
{
        boost::system::error_code ignored_error;
      boost::asio::write(isocket->socket(), boost::asio::buffer(ibuff,ilen),
          boost::asio::transfer_all(), ignored_error);
    if(ignored_error)
          return 0;
    return 1;
}


I get a *No Viable function* warning , can someone tells me why or helps me
in fixing this warning .

Thank you .




--
Sent from: http://boost.2283326.n4.nabble.com/Boost-Dev-f2600599.html

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Reply | Threaded
Open this post in threaded view
|

Re: No Viable function warning

Boost - Dev mailing list
boost::asio::transfer_all

2018年7月9日星期一,randydom via Boost <[hidden email]> 写道:

> Hello i've the bellow function :
>
>
> __declspec(dllexport) int TrySendData(_isocket * isocket,char * ibuff,int
> ilen)
> {
>         boost::system::error_code ignored_error;
>       boost::asio::write(isocket->socket(), boost::asio::buffer(ibuff,
> ilen),
>           boost::asio::transfer_all(), ignored_error);
>     if(ignored_error)
>           return 0;
>     return 1;
> }
>
>
> I get a *No Viable function* warning , can someone tells me why or helps me
> in fixing this warning .
>
> Thank you .
>
>
>
>
> --
> Sent from: http://boost.2283326.n4.nabble.com/Boost-Dev-f2600599.html
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/
> mailman/listinfo.cgi/boost
>

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost