fix try
Some checks failed
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 1m2s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 1m1s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Successful in 1m9s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 1m11s
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (pull_request) Successful in 1m10s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Failing after 1m27s
linux-mips64-gcc / linux-gcc-mips64el (push) Successful in 1m38s
linux-x64-gcc / linux-gcc (push) Successful in 1m54s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (pull_request) Successful in 1m2s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (pull_request) Successful in 1m7s
linux-hisiv500-gcc / linux-gcc-hisiv500 (pull_request) Failing after 1m11s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (pull_request) Successful in 1m14s
linux-mips64-gcc / linux-gcc-mips64el (pull_request) Successful in 1m39s
linux-x64-gcc / linux-gcc (pull_request) Successful in 1m51s
Some checks failed
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 1m2s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 1m1s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Successful in 1m9s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 1m11s
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (pull_request) Successful in 1m10s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Failing after 1m27s
linux-mips64-gcc / linux-gcc-mips64el (push) Successful in 1m38s
linux-x64-gcc / linux-gcc (push) Successful in 1m54s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (pull_request) Successful in 1m2s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (pull_request) Successful in 1m7s
linux-hisiv500-gcc / linux-gcc-hisiv500 (pull_request) Failing after 1m11s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (pull_request) Successful in 1m14s
linux-mips64-gcc / linux-gcc-mips64el (pull_request) Successful in 1m39s
linux-x64-gcc / linux-gcc (pull_request) Successful in 1m51s
This commit is contained in:
parent
9b661d3e54
commit
f4cc53b3ed
@ -15,6 +15,7 @@
|
|||||||
#include "status.h"
|
#include "status.h"
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <unordered_map>
|
||||||
|
|
||||||
namespace ulib {
|
namespace ulib {
|
||||||
|
|
||||||
@ -161,10 +162,10 @@ Status::operator=(Status const &other)
|
|||||||
|
|
||||||
// OK statuses have an impl_ == nullptr. Non-OK Statuses get an Impl.
|
// OK statuses have an impl_ == nullptr. Non-OK Statuses get an Impl.
|
||||||
Status::Status(StatusCode code, std::string message, ErrorInfo info)
|
Status::Status(StatusCode code, std::string message, ErrorInfo info)
|
||||||
: impl_(
|
: impl_(code == StatusCode::kOk
|
||||||
code == StatusCode::kOk
|
? nullptr
|
||||||
? nullptr
|
: new Status::Impl{code, std::move(message), std::move(info),
|
||||||
: new Status::Impl{code, std::move(message), std::move(info), {}})
|
Status::Impl::PayloadType()})
|
||||||
{}
|
{}
|
||||||
|
|
||||||
StatusCode
|
StatusCode
|
||||||
|
Loading…
x
Reference in New Issue
Block a user