-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Labels
design enhancementSoftware design improvement, improving genericitySoftware design improvement, improving genericity
Description
Currently there is an overload of the make_tcp_connector method in the net_ip class for const char*. This is so that calling make_tcp_connector with two C style strings does not match the make_tcp_connector method that takes a beginning and end iterator. A const char* can be an iterator, and the compiler matches that before doing an implicit conversion and matching the method that takes std::string_view (which is the method that should be matched).
The iterator version of make_tcp_connector can be disabled through std::enable_if matching on const char* (or char*), which then leaves only the std::string_view method as a matching method. This should be implemented to simplify the API.
Metadata
Metadata
Assignees
Labels
design enhancementSoftware design improvement, improving genericitySoftware design improvement, improving genericity