The package build-depends on libboost-dev, which depends on the default boost-dev version (libboost1.74-dev in bullseye). So it's not clear to me how this issue could be occurring unless transitive dependencies aren't being satisfied for some reason.