mirror of
https://github.com/coolsnowwolf/packages.git
synced 2025-05-02 23:51:07 +08:00

* boost: fix compilation error under SPARC Missing braces. Signed-off-by: Rosen Penev <rosenp@gmail.com> * boost: Bump to version 1.77.0 This commit updates boost to version 1.77.0 More info about Boost 1.77.0 can be found at the usual place [1]. There are two new libraries in this version: * Describe [2]: A C++14 reflection library, from Peter Dimov. Provides macros for describing enumerators and struct/class members, and primitives for querying this information. * Lambda2 [3]: A C++14, dependency-free, single header lambda library, from Peter Dimov. Allows simple function objects to be constructed via expressions such as: _1 + 5, _1 % 2 == 0, _1 > _2, or _1 == ' ' || _1 == '\t'. [1]: https://www.boost.org/users/history/version_1_77_0.html [2]: https://www.boost.org/libs/describe/ [3]: https://www.boost.org/libs/lambda2/ Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com> * boost: Fixes Boost.Math build for arm_xscale This commit adds a new patch which fixes build issue with Boost.Math. Issue is described in upstream PR boostorg/math#684 [1] [1]: https://github.com/boostorg/math/pull/684 Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com> * boost: Bump to version 1.78.0 This commit updates boost to version 1.78.0 More info about Boost 1.78.0 can be found at the usual place [1]. No new libraries have been added. [1]: https://www.boost.org/users/history/version_1_78_0.html Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com> * boost: fix libboost_context for mips64 There was an upstream patch that changes mips1 to mips. Signed-off-by: Rosen Penev <rosenp@gmail.com> * boost: Updates package to version 1.79.0 This commit updates boost to version 1.79.0 There are no new libraries in this version More info about Boost 1.79.0 can be found at the usual place [1]. Note: This package update includes a fix merged to Boost.JSON in [2] which did not make into this version. [1]: https://www.boost.org/users/history/version_1_79_0.html [2]: https://github.com/boostorg/json/issues/692 Signed-off-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com> Co-authored-by: Rosen Penev <rosenp@gmail.com> Co-authored-by: Carlos Miguel Ferreira <carlosmf.pt@gmail.com>
48 lines
923 B
Diff
48 lines
923 B
Diff
--- a/boost/json/impl/array.ipp
|
|
+++ b/boost/json/impl/array.ipp
|
|
@@ -491,8 +491,11 @@ erase(
|
|
auto const p = &(*t_)[0] +
|
|
(pos - &(*t_)[0]);
|
|
destroy(p, p + 1);
|
|
- relocate(p, p + 1, 1);
|
|
--t_->size;
|
|
+ if(t_->size > 0)
|
|
+ relocate(p, p + 1,
|
|
+ t_->size - (p -
|
|
+ &(*t_)[0]));
|
|
return p;
|
|
}
|
|
|
|
--- a/libs/json/test/array.cpp
|
|
+++ b/libs/json/test/array.cpp
|
|
@@ -1270,6 +1270,21 @@ public:
|
|
}
|
|
|
|
void
|
|
+ testIssue692()
|
|
+ {
|
|
+ array a;
|
|
+ object obj;
|
|
+ obj["test1"] = "hello";
|
|
+ a.push_back(obj);
|
|
+ a.push_back(obj);
|
|
+ a.push_back(obj);
|
|
+ a.push_back(obj);
|
|
+ a.push_back(obj);
|
|
+ while(a.size())
|
|
+ a.erase(a.begin());
|
|
+ }
|
|
+
|
|
+ void
|
|
run()
|
|
{
|
|
testDestroy();
|
|
@@ -1283,6 +1298,7 @@ public:
|
|
testExceptions();
|
|
testEquality();
|
|
testHash();
|
|
+ testIssue692();
|
|
}
|
|
};
|
|
|