diff --git a/src/Interpreters/Context.cpp b/src/Interpreters/Context.cpp index 876229bbaec..98100994900 100644 --- a/src/Interpreters/Context.cpp +++ b/src/Interpreters/Context.cpp @@ -442,6 +442,7 @@ Context::Context(const Context &) = default; Context & Context::operator=(const Context &) = default; SharedContextHolder::SharedContextHolder(SharedContextHolder &&) noexcept = default; +SharedContextHolder::SharedContextHolder() = default; SharedContextHolder::~SharedContextHolder() = default; SharedContextHolder::SharedContextHolder(std::unique_ptr shared_context) : shared(std::move(shared_context)) {} diff --git a/src/Interpreters/Context.h b/src/Interpreters/Context.h index eb9157bb326..ee808211d1e 100644 --- a/src/Interpreters/Context.h +++ b/src/Interpreters/Context.h @@ -136,6 +136,7 @@ using IHostContextPtr = std::shared_ptr; struct SharedContextHolder { ~SharedContextHolder(); + SharedContextHolder(); SharedContextHolder(std::unique_ptr shared_context); SharedContextHolder(SharedContextHolder &&) noexcept;