From f4cc53b3eda2a95f5dfb8f6fe0e5af54a5a6457c Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Fri, 12 Jan 2024 12:50:26 +0800 Subject: [PATCH] fix try --- src/ulib/status.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ulib/status.cpp b/src/ulib/status.cpp index f2d1444..be342bf 100644 --- a/src/ulib/status.cpp +++ b/src/ulib/status.cpp @@ -15,6 +15,7 @@ #include "status.h" #include #include +#include namespace ulib { @@ -161,10 +162,10 @@ Status::operator=(Status const &other) // OK statuses have an impl_ == nullptr. Non-OK Statuses get an Impl. Status::Status(StatusCode code, std::string message, ErrorInfo info) - : impl_( - code == StatusCode::kOk - ? nullptr - : new Status::Impl{code, std::move(message), std::move(info), {}}) + : impl_(code == StatusCode::kOk + ? nullptr + : new Status::Impl{code, std::move(message), std::move(info), + Status::Impl::PayloadType()}) {} StatusCode