If the function is only used in one source file, it makes perfect sense to define it there. If nobody else is using it, it doesn’t belong in the header.
As you say, it reduces dependencies and can potentially save some recompiles.
If the function is only used in one source file, it makes perfect sense to define it there. If nobody else is using it, it doesn’t belong in the header.
As you say, it reduces dependencies and can potentially save some recompiles.