When you compile using AppleClang and you use latest Clang compilers (starting with Clang 17), the compile fails due to this bug at Boost. Basically, the newer compiler checks more things in uninstantiated templates and this is why the problem occurs.
We do not have the problem at gcc or MSVC, it is only at Clang.