J
John Goche
Hello,
The class TRefByValue in the Symbian OS API
encapsulates a reference inside a class so that
it can be passed by value to functions. But why
would we want this? After all, if a function needs
to take a reference parameter, why code the
function to take TRefByValue as a value
parameter instead? I don't see any
advantage to this.
http://www.symbian.com/developer/te...ce/reference-cpp/N101CA/TRefByValueClass.html
Comments appreciated,
Thanks,
JG
The class TRefByValue in the Symbian OS API
encapsulates a reference inside a class so that
it can be passed by value to functions. But why
would we want this? After all, if a function needs
to take a reference parameter, why code the
function to take TRefByValue as a value
parameter instead? I don't see any
advantage to this.
http://www.symbian.com/developer/te...ce/reference-cpp/N101CA/TRefByValueClass.html
Comments appreciated,
Thanks,
JG