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.
763. Renamingemplace()
overloads
Section: 23.2.7 [associative.reqmts] Status: NAD Submitter: Sylvain Pion Opened: 2007-12-04 Last modified: 2016-01-28
Priority: Not Prioritized
View other active issues in [associative.reqmts].
View all other issues in [associative.reqmts].
View all issues with NAD status.
Discussion:
The associative containers provide 2 overloads of emplace()
:
template <class... Args> pair<iterator, bool> emplace(Args&&... args); template <class... Args> iterator emplace(const_iterator position, Args&&... args);
This is a problem if you mean the first overload while passing a const_iterator
as first argument.
[ Bellevue: ]
This can be disambiguated by passing "begin" as the first argument in the case when the non-default choice is desired. We believe that desire will be rare.
[For related discussion see 1302(i)]
LWG N2680 renamed one of the overloads to emplace_hint
.
Resolution: Change state to NAD.
Proposed resolution:
Rename one of the two overloads. For example to emplace_here
, hint_emplace
...
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