Update Context_fwd.h

This commit is contained in:
Nikolai Kochetov 2021-06-01 16:38:47 +03:00
parent dbaa6ffc62
commit 0dc4bea16b

View File

@ -23,8 +23,10 @@ class Context;
/// Most used types have shorter names
/// TODO: in the first part of refactoring all the context pointers are non-const.
using ContextPtr = std::shared_ptr<const Context>;
using ContextConstPtr = ContextPtr; /// For compatibility. Use ContextPtr.
using ContextMutablePtr = std::shared_ptr<Context>;
using ContextWeakPtr = std::weak_ptr<const Context>;
using ContextWeakConstPtr = ContextWeakPtr; /// For compatibility. Use ContextWeakPtr.
using ContextWeakMutablePtr = std::weak_ptr<Context>;
template <class Shared = ContextPtr>
@ -49,6 +51,7 @@ protected:
};
using WithContext = WithContextImpl<>;
using WithConstContext = WithContext; /// For compatibility. Use WithContext.
using WithMutableContext = WithContextImpl<ContextMutablePtr>;
}