diff --git a/src/util/Cast.hxx b/src/util/Cast.hxx index 8fd1fe5e0..ca4b62832 100644 --- a/src/util/Cast.hxx +++ b/src/util/Cast.hxx @@ -35,14 +35,14 @@ /** * Offset the given pointer by the specified number of bytes. */ -static constexpr void * +static inline constexpr void * OffsetPointer(void *p, ptrdiff_t offset) { return (char *)p + offset; } template -static constexpr T * +static inline constexpr T * OffsetCast(U *p, ptrdiff_t offset) { return reinterpret_cast(OffsetPointer(p, offset));