U++ framework
Do not panic. Ask here before giving up.

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: 14291
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: Wed Sep 09 01:17:41 GMT+2 2026

Total time taken to generate the page: 0.00940 seconds