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 » Developing U++ » U++ Developers corner » What is the highest version of U++ that does not require C++11 ?
Re: What is the highest version of U++ that does not require C++11 ? [message #46864 is a reply to message #46859] Wed, 31 August 2016 19:34 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
cbpporter wrote on Tue, 30 August 2016 09:29
Quote:

String& operator<<=(const String& s)
"Deep" assignment. It is equivalent of standard assignment followed by Shrink operation (in other words, internal buffer gets reallocated to the exact size of source).


Hmmm, that means that I can replace <<= with = in the new C++?


Yes.

Originally (pre 2013) <<= meant deep copy and 'other data assignement'. Deep copy meaning is deprecated in favor of 'clone'.

With String, it was always pointless anyway, so it is now removed.

Witch containers, use a = clone(b). Or a = pick(b) if you want move. frankly, pick is now 100% synonyme for std::move, so you can write a = std::move(b) too...

We still use <<= for widget data assignment.

Mirek

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Use zlib inside another library
Next Topic: U++ in a computer cluster
Goto Forum:
  


Current Time: Sun May 05 12:10:38 CEST 2024

Total time taken to generate the page: 0.02330 seconds