pbivens67 said:
I am not very good with pointers so this line of code perplexes me.
Sigh.
Nothing special going on here. The function argument
should have been written as HandInfo &hand
because there was not any desire to set hand
to nullptr. As a pointer or as a reference, they basically work the same avoiding a copy. That's my bad. Just consider hand
as an alias of player_hand
or dealer_hand
depending on which address was passed in.