Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 14267
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: Mon Aug 25 12:15:39 CEST 2025

Total time taken to generate the page: 0.05990 seconds