Skip to content

Refactor[bmq,mqb]: un-template request managers - #1562

Open
678098 wants to merge 1 commit into
bloomberg:mainfrom
678098:260623_untemplate_request_managers
Open

Refactor[bmq,mqb]: un-template request managers#1562
678098 wants to merge 1 commit into
bloomberg:mainfrom
678098:260623_untemplate_request_managers

Conversation

@678098

@678098 678098 commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator
  • bmqp::RequestManager and mqbnet::MultiRequestManager always have the same template args REQUEST == RESPONSE == bmqp_ctrlmsg::ControlMessage. The only reason why it is a template is for not including #include <bmqp_ctrlmsg_messages.h>. However, we still include this header. Due to this, template args are not doing anything other than making the code more complex.
  • It is possible to remove #include <bmqp_ctrlmsg_messages.h> in both class sources, but this should be done not with templates, but with forward declarations and code organization. This PR is a preparation for this.
  • Simplify arg types: RequestManagerType::RequestSp -> RequestSp

@678098
678098 requested a review from a team as a code owner June 23, 2026 20:14
@678098
678098 force-pushed the 260623_untemplate_request_managers branch from 9da28fa to 302595f Compare June 23, 2026 20:26
@678098
678098 requested a review from pniedzielski June 23, 2026 20:31
@678098
678098 force-pushed the 260623_untemplate_request_managers branch 2 times, most recently from 065dcab to 65ce7cc Compare June 23, 2026 20:42
Signed-off-by: Evgeny Malygin <emalygin@bloomberg.net>
@678098
678098 force-pushed the 260623_untemplate_request_managers branch from 65ce7cc to 436d920 Compare July 10, 2026 19:34
@pniedzielski

Copy link
Copy Markdown
Collaborator

This is a Good Change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants