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 » A probably simple question about pick semantics
Re: A probably simple question about pick semantics [message #34917 is a reply to message #34915] Fri, 16 December 2011 22:49 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
peek wrote on Fri, 16 December 2011 16:35

Hello cbpporter

I have tried it doing it by reference but the problem remains Sad.
template <class T>
void Test(T &v)
{
	// Nothing done
}

In fact I forgot to put the "&" in the sample code.

Is there a way to avoid this copy in a Vector passed by reference to a templated function?


More complex (read "compilable") example would be needed...

In general, this has to work, because such templates are widespread in the U++ code (read "theide would not run" Smile

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: gdk_pixbuf-2.0 linker error
Next Topic: Small fix for Find in Algo.h
Goto Forum:
  


Current Time: Thu May 23 16:16:45 CEST 2024

Total time taken to generate the page: 0.01668 seconds