Original Post
In the following code:
class A { ... void do_something_else(); ... };
void do_something(A var)
{
var.do_something_else();
}
int main()
{
A a_variable;
do_something(a_variable);
} How is a_variable copied to var? If let's say A contains two 4-byte ints.. does the program just copy 8 bytes of data straight from a_variable to var? Is there a way to control what gets copied and how? I tried the = operator but that didn't work, or at least it didn't seem to work. Thanks.