U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » Source code from github doesn't compile
Re: Source code from github doesn't compile [message #48941 is a reply to message #48940] Mon, 06 November 2017 00:55 Go to previous message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
Tess wrote on Mon, 06 November 2017 00:42
Yes. I'm trying to copy a websocket. Is there any way to pass websocket to another function? I tried to use pick function, but there were errors too.
It is compiled without errors, if I comment this line(41).


Depends on context, but often the best way is to use One.

E.g.

One<WebSocket> MakeMySocket()
{
    One<WebSocket> h;
    WebSocket& s = h.Create();
    // do things with s
    return h;
}


Also, instead of BiVector<WebSocket> use BiArray<WebSocket>

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Bugs in AppendFiles for Win32 (CtrlCore)
Next Topic: Jsonize problem
Goto Forum:
  


Current Time: Sun Apr 26 22:48:25 GMT+2 2026

Total time taken to generate the page: 0.00475 seconds