> Nitpick: Not all C compilers allow the inline keyword to
be
>applied to a function. That's different from the set of C
compilers
>that will inline functions.
>
> The inline keyword is at best a hint to the compiler
True. But, I think the point I was making (albeit rather poorly in
reflection) is that catching errors through function use (inline,
templatized, or other) is preferable to macros. Inline buys us
_potential_ performance improvements; templates provide us realized
generality. If I didn't have these language features at my disposal as
is the case with vanilla C, then I would create explicit functions to
handle the situations.
Mike