Title
[tiny] Fix the relation operators on standard templated types
Status
nad
Section
[library]
Submitter
Nevin Liber

Created on 2013-02-05.00:00:00 last changed 140 months ago

Messages

Date: 2013-04-28.20:20:29

In C++11, all the containers, pair, tuple, etc. always have the relation operators defined for them (==, !=, <, >, <=, >=), even if the contained type does not have them; they just fail to compile if one tries to invoke them. It would be better if those operators were SFINAEed out, so that generic code can then detect it and apply alternate strategies.

A use case I've have for this is when holding stateless objects that don't normally have the relation operators defined for them.

Bristol 2013: NAD. The operators have no opportunity for substitution failure.

History
Date User Action Args
2013-04-28 20:20:29adminsetstatus: open -> nad
2013-02-05 00:00:00admincreate