From aee81184f794d4ff30fd0d18757f113ead3e83c7 Mon Sep 17 00:00:00 2001 From: Francisco Facioni Date: Thu, 6 Nov 2025 16:06:52 +0100 Subject: [PATCH] fix clang compatiblity when building with gcc --- groups/bdl/bdlt/bdlt_datetime.cpp | 13 +++++++++++++ groups/bdl/bdlt/bdlt_datetime.h | 14 -------------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/groups/bdl/bdlt/bdlt_datetime.cpp b/groups/bdl/bdlt/bdlt_datetime.cpp index 7a979278f3..4202ae3ed2 100644 --- a/groups/bdl/bdlt/bdlt_datetime.cpp +++ b/groups/bdl/bdlt/bdlt_datetime.cpp @@ -183,6 +183,19 @@ bsl::ostream& Datetime::print(bsl::ostream& stream, return stream; } +bool Datetime::validateAndTraceLogRepresentation() const +{ + if (BSLS_PERFORMANCEHINT_PREDICT_LIKELY(k_REP_MASK <= d_value)) { + return true; // RETURN + } + BSLS_ASSERT_SAFE( + 0 && "detected invalid 'bdlt::Datetime'; see TEAM 579660115"); + BSLS_REVIEW_INVOKE( + "detected invalid 'bdlt::Datetime'; see TEAM 579660115"); + + return false; +} + int Datetime::printToBuffer(char *result, int numBytes, int fractionalSecondPrecision) const diff --git a/groups/bdl/bdlt/bdlt_datetime.h b/groups/bdl/bdlt/bdlt_datetime.h index 5ff79c6c86..2ac92e07de 100644 --- a/groups/bdl/bdlt/bdlt_datetime.h +++ b/groups/bdl/bdlt/bdlt_datetime.h @@ -1125,20 +1125,6 @@ bsls::Types::Uint64 Datetime::updatedRepresentation() const | k_REP_MASK; } -inline -bool Datetime::validateAndTraceLogRepresentation() const -{ - if (BSLS_PERFORMANCEHINT_PREDICT_LIKELY(k_REP_MASK <= d_value)) { - return true; // RETURN - } - BSLS_ASSERT_SAFE( - 0 && "detected invalid 'bdlt::Datetime'; see TEAM 579660115"); - BSLS_REVIEW_INVOKE( - "detected invalid 'bdlt::Datetime'; see TEAM 579660115"); - - return false; -} - // CLASS METHODS inline bool Datetime::isValid(int year,