Home » Developing U++ » U++ Developers corner » C2280
Re: C2280 [message #47606 is a reply to message #47602] |
Mon, 06 February 2017 13:15 |
Mindtraveller
Messages: 917 Registered: August 2007 Location: Russia, Moscow rgn.
|
Experienced Contributor |
|
|
http://www.ultimatepp.org/srcdoc$Core$pick_$en-us.html
U++ style of coding insists on explicit definition what you want to do: to clone object or to move it. You mustn't write trivial code like
b = a;
fot U++ objects because it is hard to say whether you want to clone object or pick/move it from a to b.
P.S. It is rather uncommon for C++, but I do personally like this style. It is more strict and less error prone.
[Updated on: Mon, 06 February 2017 13:16] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun Apr 28 07:57:35 CEST 2024
Total time taken to generate the page: 0.06965 seconds
|