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 #34915 is a reply to message #34795] Fri, 16 December 2011 22:35 Go to previous messageGo to previous message
peek is currently offline  peek
Messages: 13
Registered: March 2010
Promising Member
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?
 
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: Sat Aug 02 22:24:29 CEST 2025

Total time taken to generate the page: 0.00557 seconds