Skip to content

Commit be68cd9

Browse files
Accessors for private fields
1 parent 91b2beb commit be68cd9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/amongoc/wire/message.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ class any_message {
231231
decltype(auto) visit_content(auto&& fn) const { return std::visit(mlib_fwd(fn), content()); }
232232

233233
std::int32_t opcode() const noexcept;
234+
std::int32_t request_id() const noexcept { return _req_id; }
235+
std::int32_t response_to() const noexcept { return _resp_to; }
234236

235237
vector<asio::const_buffer> buffers(mlib::allocator<> a) const;
236238

0 commit comments

Comments
 (0)