Author: Dan Honeycutt
Date: 07:58:43 10/01/04
If I have an inline function, ie: _inline int Distance(int square1, int square2) which is going to return the max rank/file difference but is not going to alter the arguements, would I be better off passing the arguements by reference, ie: _inline int Distance(int & square1, int & square2) so as to save having to make a copy of the arguements. Or would the compiler figure that out on it's own since the function is inline? I'm using MS VC 6. Thanks Dan H.
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.