Move operator for object that doesn't manage resources
Is it correct to say that "move" operation doesn't make any sense for objects that don't acquire resources?
For example
1 2 3 4 5 6 7
|
class A{
int number;
}
class B {
A a;
}
|
What would be the benefit to introduce move operator for B class? and if such exists how to do it properly?
Last edited on
Topic archived. No new replies allowed.