M
meekee
In class A I get a reference to 'SomeType':
class A {
SomeType test;
public:
A(SomeType& someT) {
test = someT;
}
...
...
};
But if I do operations on test the are not visible in the someT instance
since test is a local copy. But how do I make test a "reference copy"
of someT so when I change test I also change someT?
class A {
SomeType test;
public:
A(SomeType& someT) {
test = someT;
}
...
...
};
But if I do operations on test the are not visible in the someT instance
since test is a local copy. But how do I make test a "reference copy"
of someT so when I change test I also change someT?