about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/dbxml/cxx11.patch
blob: f264515c7d67fe60cf286fe2e6e6f7c2bd1364d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
diff -urN dbxml-6.1.4.orig/dbxml/src/dbxml/nodeStore/NsUpdate.cpp dbxml-6.1.4/dbxml/src/dbxml/nodeStore/NsUpdate.cpp
--- dbxml-6.1.4.orig/dbxml/src/dbxml/nodeStore/NsUpdate.cpp	2017-05-01 16:05:29.000000000 +0100
+++ dbxml-6.1.4/dbxml/src/dbxml/nodeStore/NsUpdate.cpp	2017-09-04 11:50:20.000000000 +0100
@@ -1359,21 +1359,13 @@
 void NsUpdate::attributeRemoved(const DbXmlNodeImpl &node)
 {
 	string key = makeKey(node);
-#if defined(_MSC_VER) && (_MSC_VER>1600)
 	attrMap_.insert(make_pair(key,node.getIndex()));
-#else
-	attrMap_.insert(make_pair<const std::string, int>(key,node.getIndex()));
-#endif
 }
 
 void NsUpdate::textRemoved(const DbXmlNodeImpl &node)
 {
 	string key = makeKey(node);
-#if defined(_MSC_VER) && (_MSC_VER>1600)
 	textDeleteMap_.insert(make_pair(key,node.getIndex()));
-#else
-	textDeleteMap_.insert(make_pair<const std::string, int>(key,node.getIndex()));
-#endif
 }
 
 void NsUpdate::textRemoved(int index, const NsNid &nid,
@@ -1381,21 +1373,13 @@
 			   const std::string &cname)
 {
 	string key = makeKey(nid, did, cname);
-#if defined(_MSC_VER) && (_MSC_VER>1600)
 	textDeleteMap_.insert(make_pair(key,index));
-#else
-	textDeleteMap_.insert(make_pair<const std::string, int>(key,index));
-#endif
 }
 
 void NsUpdate::textInserted(int index, const DbXmlNodeImpl &node)
 {
 	string key = makeKey(node);
-#if defined(_MSC_VER) && (_MSC_VER>1600)
 	textInsertMap_.insert(make_pair(key,index));
-#else
-	textInsertMap_.insert(make_pair<const std::string, int>(key,index));
-#endif
 }
 
 void NsUpdate::textInserted(int index, const NsNid &nid,
@@ -1403,11 +1387,7 @@
 			    const std::string &cname)
 {
 	string key = makeKey(nid, did, cname);
-#if defined(_MSC_VER) && (_MSC_VER>1600)
 	textInsertMap_.insert(make_pair(key,index));
-#else
-	textInsertMap_.insert(make_pair<const std::string, int>(key,index));
-#endif
 }
 
 //