From Jason Turner

[diff.cpp14.containers]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpaqlahkri/{from.md → to.md} +26 -0
tmp/tmpaqlahkri/{from.md → to.md} RENAMED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### Clause [[containers]]: containers library <a id="diff.cpp14.containers">[[diff.cpp14.containers]]</a>
2
+
3
+ [[associative.reqmts]] **Change:** Requirements change: **Rationale:**
4
+ Increase portability, clarification of associative container
5
+ requirements. **Effect on original feature:** Valid C++14code that
6
+ attempts to use associative containers having a comparison object with
7
+ non-const function call operator may fail to compile in this
8
+ International Standard:
9
+
10
+ ``` cpp
11
+ #include <set>
12
+
13
+ struct compare
14
+ {
15
+ bool operator()(int a, int b)
16
+ {
17
+ return a < b;
18
+ }
19
+ };
20
+
21
+ int main() {
22
+ const std::set<int, compare> s;
23
+ s.find(0);
24
+ }
25
+ ```
26
+