From f71cc32f0bed1a27f716f8baa8db71271cd0c808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnter=20Obiltschnig?= Date: Fri, 5 Nov 2021 14:19:01 +0100 Subject: [PATCH] #3363: Fixed compilation error with MongoDB::Connection and Util::Application --- MongoDB/include/Poco/MongoDB/MessageHeader.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/MongoDB/include/Poco/MongoDB/MessageHeader.h b/MongoDB/include/Poco/MongoDB/MessageHeader.h index 1f86612aa..0f56d9e83 100644 --- a/MongoDB/include/Poco/MongoDB/MessageHeader.h +++ b/MongoDB/include/Poco/MongoDB/MessageHeader.h @@ -26,8 +26,11 @@ namespace Poco { namespace MongoDB { +class Message; // Required to disambiguate friend declaration in MessageHeader. + + class MongoDB_API MessageHeader - /// Represents the message header which is always prepended to a + /// Represents the message header which is always prepended to a /// MongoDB request or response message. { public: @@ -70,7 +73,7 @@ public: /// Sets the request ID of the current message. Int32 responseTo() const; - /// Returns the request id from the original request. + /// Returns the request id from the original request. private: void setMessageLength(Int32 length);