fix logging on ARM64 and Centos

This commit is contained in:
Mizux Seiha
2021-04-12 12:17:51 +02:00
parent 89d8d77c2a
commit 6cc8e2bcf5
2 changed files with 10 additions and 0 deletions

View File

@@ -1865,6 +1865,11 @@ void MakeCheckOpValueString(std::ostream* os, const unsigned char& v) {
}
}
template <>
void MakeCheckOpValueString(std::ostream* os, const std::nullptr_t& v) {
(*os) << "nullptr";
}
void InitGoogleLogging(const char* argv0) {
logging_internal::InitGoogleLoggingUtilities(argv0);
}

View File

@@ -565,6 +565,11 @@ template <typename T1, typename T2>
std::string* MakeCheckOpString(const T1& v1, const T2& v2,
const char* exprtext) ATTRIBUTE_NOINLINE;
// Provide printable value for nullptr_t
template <>
GOOGLE_GLOG_DLL_DECL void MakeCheckOpValueString(std::ostream* os,
const std::nullptr_t& v);
namespace base {
namespace internal {