diff --git a/include/zenoh/api/session.hxx b/include/zenoh/api/session.hxx index d236969..fc85993 100644 --- a/include/zenoh/api/session.hxx +++ b/include/zenoh/api/session.hxx @@ -532,7 +532,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_BEST_EFFORT; + Reliability reliability = z_reliability_default(); #endif /// @brief the timestamp of this message. std::optional timestamp = {}; @@ -588,7 +588,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_BEST_EFFORT; + 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 +648,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_BEST_EFFORT; + 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