Boost logo

Boost :

Subject: Re: [boost] No Viable function warning
From: jack (jack.wgm_at_[hidden])
Date: 2018-09-03 11:16:01


boost::asio::transfer_all

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

> 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
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk