mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
Update Context_fwd.h
This commit is contained in:
parent
dbaa6ffc62
commit
0dc4bea16b
@ -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>;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user