On Mon, Jul 15, 2002 at 01:43:03PM +0100, Angus Leeming wrote: > How seriously do we take Scott Meyer's recommendation "Prefer algorithm calls > to hand-written loops"? (Item 43 of Effective STL)
To the extend where the "algorithm solution" does neither create carpal symdrome when writing nor headaches when reading? [And mind that Lars' answer is probably "ALWAYS"] > For example, these two functions have identical functionality. Which one is > prefereable? (and yes, I chose a deliberately simple example...) I'd presonally use the hand-written loop unless the function object gets reused in two or three other places. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)