File tree 1 file changed +14
-2
lines changed 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 1
1
/* ******************************************************************\
2
2
3
- Module: Serialization tests
3
+ Module: Range union tests
4
4
5
5
6
6
7
- Purpose: Testing of virtual_map and related classes .
7
+ Purpose: Testing of range_union .
8
8
9
9
\*******************************************************************/
10
10
@@ -35,17 +35,29 @@ int main()
35
35
const std::vector<std::string> cstrs = { " hic" , " loc" };
36
36
std::cout << " Trying to bind const references to const strings:" ;
37
37
for (const std::string &str : range_union (cstrs, cstrs))
38
+ {
39
+ str.empty ();
38
40
std::cout << " yes!" ;
41
+ }
39
42
std::cout << endl_ind;
40
43
std::cout << " Trying to bind non-const references to non-const strings:" ;
41
44
for (std::string &str : range_union (strs, strs))
45
+ {
46
+ str.empty ();
42
47
std::cout << " yes!" ;
48
+ }
43
49
std::cout << endl_ind;
44
50
std::cout << " Trying to bind const references to mixed strings:" ;
45
51
for (const std::string &str : range_union (cstrs, strs))
52
+ {
53
+ str.empty ();
46
54
std::cout << " yes!" ;
55
+ }
47
56
for (const std::string &str : range_union (strs, cstrs))
57
+ {
58
+ str.empty ();
48
59
std::cout << " yes!" ;
60
+ }
49
61
std::cout << endl_ind;
50
62
// If you could catch this sort of error then this test would be valid
51
63
// try
You can’t perform that action at this time.
0 commit comments