Title
Minor Overconstraint in Mutex Types
Status
nad
Section
[thread.mutex.requirements.mutex]
Submitter
Pete Becker

Created on 2011-10-17.00:00:00 last changed 156 months ago

Messages

Date: 2012-02-13.21:55:45

[ 2012, Kona ]

This does not specify a concept; it specifies requirements on the concrete mutex types.

Date: 2011-10-17.00:00:00

[thread.mutex.requirements.mutex]/6, fourth bullet requires the return type of m.lock() to be void.

This is over-constrained. The true requirement is that the standard library ignores any value that the function returns. Yes, allowing non-void return types means that users can't store a pointer to this member function. No, that's not the least bit important.

[See also the discussion following c++std-lib-31318]

History
Date User Action Args
2012-02-13 21:55:45adminsetmessages: + msg6012
2012-02-13 21:55:45adminsetstatus: new -> nad
2011-10-17 00:00:00admincreate