Opened 7 years ago

Closed 7 years ago

#11995 closed Feature Requests (duplicate)

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: duplicate
Status: newclosed

Duplicate of Trac 11996

Note: See TracTickets for help on using tickets.