[Webkit-unassigned] [Bug 144628] [Curl] WebSocket platform part is not implemented.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 13 04:03:28 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=144628

--- Comment #17 from peavo at outlook.com ---
(In reply to comment #13)
> > MSVC didn't want to convert this, I got the error:
> > 
> > error C2664: 'std::unique_ptr<const char
> > [],std::default_delete<_Ty>>::unique_ptr(const
> > std::unique_ptr<_Ty,std::default_delete<_Ty>> &)' : 
> > cannot convert argument 1 from 'std::unique_ptr<char
> > [],std::default_delete<_Ty>>' to 'std::unique_ptr<const char
> > [],std::default_delete<_Ty>> &&'
> If this really is a bug in MSVC, could you use const_cast to add const
> instead of taking it away?  That would be nicer.
> > I had to add a SocketData constructor since m_sendData.append(SocketData {
> > WTF::move(copy), length }) didn't compile with MSVC. The error I got was:
> > 
> > error C2440 : '<function-style-cast>' : cannot convert from
> > 'initializer-list' to 'WebCore::SocketStreamHandle::SocketData'
> > 1>          No constructor could take the source type, or constructor
> > overload resolution was ambiguous
> Does it work to call the constructor without any initializer-list? (no {})

Thanks for looking into this :)

I removed the const modifier from the unique_ptr member in the last patch to avoid all the casting. I hope this is acceptable :)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150513/db761afd/attachment-0001.html>


More information about the webkit-unassigned mailing list