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(const Vector& v, int)
Re: Vector(const Vector& v, int) [message #46848 is a reply to message #46847] Sat, 27 August 2016 06:52 Go to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Novo wrote on Fri, 26 August 2016 23:47

Maybe, it makes sense to make pick/clone optional, and let compiler auto-generate default copy constructor? This legacy move semantics doesn't seem to have much sense when compiler already does good job moving temporary data for you. You still will be able to call "pick". Typing code which is not really necessary is very annoying ...


Well, the idea is to prevent accidental deep copy... In most cases, you want 'pick', but with implicit '=' for deep copy, it is easy to forget.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: strcpy issue
Next Topic: HttpRequest issue
Goto Forum:
  


Current Time: Mon May 20 05:08:55 CEST 2024

Total time taken to generate the page: 0.00506 seconds