A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.github.io/LWG/issue2090 below:

Minor Overconstraint in Mutex Types

This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of NAD status.

2090. Minor Overconstraint in Mutex Types

Section: 32.6.4.2 [thread.mutex.requirements.mutex] Status: NAD Submitter: Pete Becker Opened: 2011-10-17 Last modified: 2016-01-28

Priority: Not Prioritized

View all other issues in [thread.mutex.requirements.mutex].

View all issues with NAD status.

Discussion:

32.6.4.2 [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]

[2012, Kona]

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

Proposed resolution:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4