edit test.cpp
This commit is contained in:
@ -85,6 +85,15 @@ int main(int ArgiCnt, char** AppArgu)
|
||||
HereInt2 myi2= &myi1;
|
||||
HereInt3 myi3= myi1 ; myi3=123;
|
||||
|
||||
ZtCRef<int> myref(myi1);
|
||||
ZtCCheckRef< int > myrefcheck1(myi1); myrefcheck1.GetData();
|
||||
ZtCCheckRef< ZtCRef<int> > myrefcheck2(myi1); myrefcheck2.GetData();
|
||||
|
||||
myi1=4321;
|
||||
|
||||
cout<<"# myrefcheck1.GetData()="<<myrefcheck1.GetData()<<endl;
|
||||
cout<<"# myrefcheck2.GetData()="<<myrefcheck2.GetData()<<endl;
|
||||
|
||||
cout<<"# HereInt1 ="<< typeid(myi1).name()<<endl;
|
||||
cout<<"# HereInt2 int* ="<< typeid(myi2).name()<<endl;
|
||||
cout<<"# HereInt3 int& ="<< typeid(myi3).name()<<endl;
|
||||
|
Reference in New Issue
Block a user