Closed OFFTKP closed 1 month ago
I was also affected by this problem in https://github.com/wheremyfoodat/Panda3DS
This works as expected for me with Boost 1.84 but not 1.85. gcc 11.4, -O2
, Kubuntu 22.04.
Ah, sorry, I missed that you were using -O3
. With it, it also fails with Boost 1.84.
Please check the following commit, it should fix the issue:
https://github.com/boostorg/container/commit/20ad12f20e661978e90dc7f36d8ab8ac05e5a5a9
With that commit applied to 1.85, this test produces the expected result for me:
Next timestamp: 6000
Time: 6000, TaskType: 0
Time: 10000, TaskType: 1
gcc 11.4, -O3
, Kubuntu 22.04.
Closing this as fixed after the commit. Thanks for the report.
Hello!
I have attached a code snippet. main.txt
If you build it like this:
The output is not sorted, next timestamp should be 6000.
Next timestamp should be 6000.
If you compile with O2 using g++, or you compile using clang++ however, the issue is fixed: