If compiler support is not an issue, readability very much would be. We certainly shouldn't make simple things like this look so overly complicated.

That said, this looks like a good candidate for a utility function.