Skip to content
Snippets Groups Projects
Commit 7b4efe44 authored by Raul Radu's avatar Raul Radu
Browse files

[MessageBroker] Fixed C++ standard issue by removing comment on no discard...

[MessageBroker] Fixed C++ standard issue by removing comment on no discard (supported only in c++20)
parent 027a8a25
No related tags found
No related merge requests found
Pipeline #8628 failed
...@@ -34,10 +34,8 @@ public: ...@@ -34,10 +34,8 @@ public:
static MessageBroker& getInstance(); static MessageBroker& getInstance();
using SubscriberFn = std::function<void(const Message&, const Filter&)>; using SubscriberFn = std::function<void(const Message&, const Filter&)>;
[[nodiscard( [[nodiscard]] std::unique_ptr<Subscription> subscribe(
"IF NOT SAVED, THE SUBSCRIPTION WILL BE AUTOMATICALLY REMOVED")]] std:: Filter filter, MessageBroker::SubscriberFn callback);
unique_ptr<Subscription>
subscribe(Filter filter, MessageBroker::SubscriberFn callback);
/** /**
* @brief Publish a message to all its subscribers. * @brief Publish a message to all its subscribers.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment