Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no such type as generic_request_handler_t #206

Open
eao197 opened this issue Dec 27, 2023 · 0 comments
Open

There is no such type as generic_request_handler_t #206

eao197 opened this issue Dec 27, 2023 · 0 comments
Assignees

Comments

@eao197
Copy link
Member

eao197 commented Dec 27, 2023

There is a type default_request_handler_t:

using default_request_handler_t =
std::function< request_handling_status_t ( request_handle_t ) >;

And there is a type generic_request_handle_t:
template< typename Extra_Data >
using generic_request_handle_t =
std::shared_ptr< generic_request_t< Extra_Data > >;

But there is no generic_request_handler_t in a form like:

template<typename ExtraData>
using generic_request_handler_t = std::function<
   request_handling_status_t(generic_reqeuest_handle_t<ExtraData>)>;

Such a type can make usage of ExtraData simpler.

@eao197 eao197 self-assigned this Dec 27, 2023
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

No branches or pull requests

1 participant