From ff686d655a7ddfa8649acba54cfd104b1c37443d Mon Sep 17 00:00:00 2001 From: yuanyuyuan Date: Tue, 7 Jan 2025 15:11:37 +0800 Subject: [PATCH] chore: address the comment --- include/zenoh/api/session.hxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/zenoh/api/session.hxx b/include/zenoh/api/session.hxx index 7ab0b29..ca7e090 100644 --- a/include/zenoh/api/session.hxx +++ b/include/zenoh/api/session.hxx @@ -14,6 +14,7 @@ #pragma once +#include #include #include "../detail/closures_concrete.hxx" @@ -532,7 +533,7 @@ class Session : public Owned<::z_owned_session_t> { /// @warning This API has been marked as unstable: it works as advertised, but it may be changed in a future /// release. /// @brief The delete operation reliability. - Reliability reliability = Reliability::Z_RELIABILITY_RELIABLE; + Reliability reliability = z_reliability_default(); #endif /// @brief the timestamp of this message. std::optional timestamp = {}; @@ -588,7 +589,7 @@ class Session : public Owned<::z_owned_session_t> { /// @warning This API has been marked as unstable: it works as advertised, but it may be changed in a future /// release. /// @brief The put operation reliability. - Reliability reliability = Reliability::Z_RELIABILITY_RELIABLE; + Reliability reliability = z_reliability_default(); #endif #if defined(ZENOHCXX_ZENOHC) && defined(Z_FEATURE_UNSTABLE_API) /// @warning This API has been marked as unstable: it works as advertised, but it may be changed in a future @@ -648,7 +649,7 @@ class Session : public Owned<::z_owned_session_t> { /// @warning This API has been marked as unstable: it works as advertised, but it may be changed in a future /// release. /// @brief The publisher reliability. - Reliability reliability = Reliability::Z_RELIABILITY_RELIABLE; + Reliability reliability = z_reliability_default(); #endif #if defined(ZENOHCXX_ZENOHC) && defined(Z_FEATURE_UNSTABLE_API) /// @warning This API has been marked as unstable: it works as advertised, but it may be changed in a future