Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/flatbuffers Don't depend on deprecrated behavior.
details: https://anonhg.NetBSD.org/pkgsrc/rev/63737d0fc403
branches: trunk
changeset: 430426:63737d0fc403
user: joerg <joerg%pkgsrc.org@localhost>
date: Fri May 01 00:02:27 2020 +0000
description:
Don't depend on deprecrated behavior.
diffstat:
devel/flatbuffers/distinfo | 4 +-
devel/flatbuffers/patches/patch-include_flatbuffers_flatbuffers.h | 24 ++++++++++
devel/flatbuffers/patches/patch-include_flatbuffers_reflection.h | 15 ++++++
3 files changed, 42 insertions(+), 1 deletions(-)
diffs (61 lines):
diff -r c46fcf851bb6 -r 63737d0fc403 devel/flatbuffers/distinfo
--- a/devel/flatbuffers/distinfo Fri May 01 00:01:32 2020 +0000
+++ b/devel/flatbuffers/distinfo Fri May 01 00:02:27 2020 +0000
@@ -1,7 +1,9 @@
-$NetBSD: distinfo,v 1.3 2018/05/08 16:44:15 minskim Exp $
+$NetBSD: distinfo,v 1.4 2020/05/01 00:02:27 joerg Exp $
SHA1 (flatbuffers-1.9.0.tar.gz) = 66a3c75a271c6dab1dc4511aed4b7d498875265d
RMD160 (flatbuffers-1.9.0.tar.gz) = 0a73365e0d0f6db5d65b59d4807f457af4a0645e
SHA512 (flatbuffers-1.9.0.tar.gz) = 0ba07dbe5b2fde1d0a6e14ee26ee2816062541d934eda204b846a30c019362f2626761b628c900293928b9b546dba8ca477c13182e022c3e0e0a142fd67f0696
Size (flatbuffers-1.9.0.tar.gz) = 681752 bytes
SHA1 (patch-CMakeLists.txt) = 89679eed28e7b5ce1fb6573c14433acdc43058a6
+SHA1 (patch-include_flatbuffers_flatbuffers.h) = 1ebdddb8861098c94c0a359be958d75c1d375cd8
+SHA1 (patch-include_flatbuffers_reflection.h) = 4e276144637c519be8713ea95cdb73c4a5769e91
diff -r c46fcf851bb6 -r 63737d0fc403 devel/flatbuffers/patches/patch-include_flatbuffers_flatbuffers.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/flatbuffers/patches/patch-include_flatbuffers_flatbuffers.h Fri May 01 00:02:27 2020 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-include_flatbuffers_flatbuffers.h,v 1.1 2020/05/01 00:02:27 joerg Exp $
+
+Implicit copy constructor is deprecated when a user-defined assignment
+operator is defined.
+
+--- include/flatbuffers/flatbuffers.h.orig 2020-04-29 23:22:29.846831379 +0000
++++ include/flatbuffers/flatbuffers.h
+@@ -1371,6 +1371,8 @@ class FlatBufferBuilder {
+
+ /// @cond FLATBUFFERS_INTERNAL
+ template<typename T> struct StructKeyComparator {
++ StructKeyComparator () = default;
++ StructKeyComparator (const StructKeyComparator &) = default;
+ bool operator()(const T &a, const T &b) const {
+ return a.KeyCompareLessThan(&b);
+ }
+@@ -1442,6 +1444,7 @@ class FlatBufferBuilder {
+ /// @cond FLATBUFFERS_INTERNAL
+ template<typename T> struct TableKeyComparator {
+ TableKeyComparator(vector_downward &buf) : buf_(buf) {}
++ TableKeyComparator (const TableKeyComparator &) = default;
+ bool operator()(const Offset<T> &a, const Offset<T> &b) const {
+ auto table_a = reinterpret_cast<T *>(buf_.data_at(a.o));
+ auto table_b = reinterpret_cast<T *>(buf_.data_at(b.o));
diff -r c46fcf851bb6 -r 63737d0fc403 devel/flatbuffers/patches/patch-include_flatbuffers_reflection.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/flatbuffers/patches/patch-include_flatbuffers_reflection.h Fri May 01 00:02:27 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-include_flatbuffers_reflection.h,v 1.1 2020/05/01 00:02:27 joerg Exp $
+
+Implicit copy constructor is deprecated when a user-defined assignment
+operator is defined.
+
+--- include/flatbuffers/reflection.h.orig 2020-04-29 23:28:21.560920814 +0000
++++ include/flatbuffers/reflection.h
+@@ -363,6 +363,7 @@ template<typename T, typename U> class p
+ reinterpret_cast<uint8_t *>(flatbuffers::vector_data(vec_)) + offset_);
+ }
+ T *operator->() const { return operator*(); }
++ pointer_inside_vector (const pointer_inside_vector &) = default;
+ void operator=(const pointer_inside_vector &piv);
+
+ private:
Home |
Main Index |
Thread Index |
Old Index