]> git.pld-linux.org Git - packages/gjs.git/blobdiff - gjs-noc++17.patch
- updated to 1.56.2
[packages/gjs.git] / gjs-noc++17.patch
diff --git a/gjs-noc++17.patch b/gjs-noc++17.patch
new file mode 100644 (file)
index 0000000..2c75fe3
--- /dev/null
@@ -0,0 +1,12 @@
+Fixes build in C++14 mode (insert(pair&&) is C++17)
+--- gjs-1.56.2/gi/gtype.cpp.orig       2019-05-08 01:34:52.000000000 +0200
++++ gjs-1.56.2/gi/gtype.cpp    2019-05-24 15:52:21.984123467 +0200
+@@ -172,7 +172,7 @@
+     /* Saving a reference to the wrapper pointer, as heap_wrapper will be
+      * nullified by std::move */
+     JSObject *gtype_wrapper = *heap_wrapper;
+-    weak_pointer_list.insert({gtype, std::move(heap_wrapper)});
++    weak_pointer_list.emplace(gtype, std::move(heap_wrapper));
+     return gtype_wrapper;
+ }
This page took 0.067718 seconds and 4 git commands to generate.