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,