Skip to content

There is no such type as generic_request_handler_t #206

@eao197

Description

@eao197

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions