diff --git a/src/util/Manual.hxx b/src/util/Manual.hxx index 71a945427..b6ad7d072 100644 --- a/src/util/Manual.hxx +++ b/src/util/Manual.hxx @@ -62,6 +62,13 @@ public: } #endif + /** + * Cast a value reference to the containing Manual instance. + */ + static constexpr Manual &Cast(T &value) { + return reinterpret_cast &>(value); + } + template void Construct(Args&&... args) { assert(!initialized);