Opened 7 years ago

Closed 7 years ago

#11996 closed Feature Requests (wontfix)

Deduce key type from return type of key extractor

Reported by: fdegros@… Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: intrusive
Version: Boost 1.60.0 Severity: Optimization
Keywords: Cc:

Description

The "key extractor" passed to key_of_value must specify the key type as a nested type definition and the operator() that extracts the key of a value_type.

I think the nested type definition is redundant and could be determined from the returned type of the key extraction operator().

Change History (1)

comment:1 by Ion Gaztañaga, 7 years ago

Resolution: wontfix
Status: newclosed

The library needs to support C++03, and relaying on a result_of emulation would be overkill.

Note: See TracTickets for help on using tickets.