forked from boostorg/mqtt5
Add bool conversion operator to subscription_identifiers.
Reviewers: ivica Reviewed By: ivica Subscribers: korina Differential Revision: https://repo.mireo.local/D27993
This commit is contained in:
@ -54,6 +54,10 @@ public:
|
|||||||
return !empty();
|
return !empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
explicit operator bool() const noexcept {
|
||||||
|
return !empty();
|
||||||
|
}
|
||||||
|
|
||||||
int32_t& operator*() noexcept {
|
int32_t& operator*() noexcept {
|
||||||
return front();
|
return front();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user