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 |
|
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);
|
|
|
Goto Forum:
Current Time: Mon Apr 29 05:13:24 CEST 2024
Total time taken to generate the page: 0.02473 seconds
|