aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/Cast.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/Cast.hxx')
-rw-r--r--src/util/Cast.hxx4
1 files changed, 2 insertions, 2 deletions
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<typename T, typename U>
-static constexpr T *
+static inline constexpr T *
OffsetCast(U *p, ptrdiff_t offset)
{
return reinterpret_cast<T *>(OffsetPointer(p, offset));