From: JoeO on
{ question was about the validity of the code similar to

class T {} objA, objB;
T& objRef = (boolean expression) ? objA : objB;

next time please do provide quoting yourself. thanks. -mod }

Thank you both. I appear to have completely glossed right over

"If the second and third operands are lvalues and have the same type,
the result is of that type and is an lvalue."

[ See for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]