mirror of
https://github.com/boostorg/mqtt5.git
synced 2025-10-04 12:50:54 +02:00
Improved CONNECT & CONNACK property client functions
Summary: related to T13427 Reviewers: ivica Reviewed By: ivica Subscribers: miljen, iljazovic Differential Revision: https://repo.mireo.local/D27218
This commit is contained in:
@@ -51,19 +51,11 @@ public:
|
||||
}
|
||||
|
||||
template <typename Prop>
|
||||
decltype(auto) connack_prop(Prop p) {
|
||||
return std::as_const(_test_props[p]);
|
||||
const auto& connack_property(Prop p) const {
|
||||
return _test_props[p];
|
||||
}
|
||||
|
||||
template <typename Prop0, typename ...Props>
|
||||
decltype(auto) connack_props(Prop0 p0, Props ...props) {
|
||||
return std::make_tuple(
|
||||
std::as_const(_test_props[p0]),
|
||||
std::as_const(_test_props[props])...
|
||||
);
|
||||
}
|
||||
|
||||
const auto& connack_props() {
|
||||
const auto& connack_properties() {
|
||||
return _test_props;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user