diff --git a/src/util/Cast.hxx b/src/util/Cast.hxx index 7e0eec2c6..b530878e0 100644 --- a/src/util/Cast.hxx +++ b/src/util/Cast.hxx @@ -85,7 +85,7 @@ ContainerAttributeOffset(const A C::*p) */ template static inline constexpr C & -ContainerCast(A &a, A C::*member) +ContainerCast(A &a, const A C::*member) { return *OffsetCast(&a, ContainerAttributeOffset(member)); } @@ -95,7 +95,7 @@ ContainerCast(A &a, A C::*member) */ template static inline constexpr const C & -ContainerCast(const A &a, A C::*member) +ContainerCast(const A &a, const A C::*member) { return *OffsetCast(&a, ContainerAttributeOffset(member)); }