| http://www.w3.org/ns/prov#value | - Secondly, C++ defines by default a 'shallow' copy, i.e. a copy much like Java's Object.clone(); So if we had something like:class Foo { public: int a; SomeObj* bar; };void testFoo( Foo foo ) {}int main() {Foo test;test.a = 1;test.bar = new SomeObj;testFoo( test );}Then what essentially happens is the following:// allocate memory for object test, do not run ctor e.g. malloc(sizeof(test));test.a = fo
|