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 » Vector< > & does't work
Re: Vector< > & does't work [message #6748 is a reply to message #6745] Sun, 26 November 2006 07:31 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13984
Registered: November 2005
Ultimate Member
Well, I am not 100% sure what is in the Ports variables, however, assert like this most likely means "pick" semantics is broken somewhere.

Ptr=Ports;

and

Ptr=Channels;

are the most likely causes, especially first - you are picking Ports to Ports or Channel to Ports (you cannot assign reference!).

I believe you wanted

Vector<Item>& Ptr = T == CHANNEL ? Channel : Ports;

Mirek
 
Read Message
Read Message
Read Message
Previous Topic: How to catch keyboard input?
Next Topic: How to simulate keyboard (and without focus)?
Goto Forum:
  


Current Time: Fri Jun 07 20:14:46 CEST 2024

Total time taken to generate the page: 0.02069 seconds