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