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 » moveable with assert question
Re: moveable with assert question [message #52372 is a reply to message #52369] Sun, 15 September 2019 19:38 Go to previous messageGo to previous message
mtdew3q is currently offline  mtdew3q
Messages: 181
Registered: July 2010
Location: Upstate, NY (near Canada)
Experienced Member

Hi all-

I am trying to learn the core and requirements for moveable.
Do classes still have to be moveable for pick?

I understand that pick might be a synonym for std::move.

Here is another code snippet. I am not sure why it won't work.
Please see the small class in my other post. The vector code fails
when adding a foo object. // v1.Add(f);

Please show me a trick. thnx. roboloki

	Foo f, f2;
	
	f.Set(&f2);
   
    //Foo && r2 = std::move(f) ;
    
    // int b = r2.Get();
    
    //  Cout() << b;
    
    Vector<Foo> v1;
    
    v1.Add(f);
    
    Vector<int> n;
    n.Add(3);
  
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SetVppLogNoDeleteOnStartup() declaration is missing
Next Topic: FileSize
Goto Forum:
  


Current Time: Mon Apr 29 05:13:24 CEST 2024

Total time taken to generate the page: 0.02473 seconds