Hi Giovanni,
Thanks for reporting the bug. I've tried to apply the patch you provided
but then it fails to build with the current unstable dependencies.
Having a look at upstream I've found a commit [0] that seems to fix this
bug and I've added it as a quilt patch in the "boost-fix" branch [1].
Anyway, I prefer to test it a bit more before merging it into master and
uploading a new release.
[0]:
https://github.com/Aegisub/Aegisub/commit/c3c446a8d6abc5127c9432387f50c5ad50012561
[1]: https://salsa.debian.org/debian/aegisub/tree/boost-fix
Aniol