Closed tomwhoiscontrary closed 2 months ago
Do you also see the error with a more recent version of boost? Usually if you're using a very new compiler version you'll get fewer warnings and errors with the latest version of boost.
@sweemer Currently i'm getting Boost from the OS package manager, so don't have a way to get anything newer. I am also hoping to get the build hooked up to vcpkg so i have more flexibility and control there, but that didn't work at my first attempt, and will need some fiddling.
I can easily try with older GCCs, though. But i'm using the official GCC docker images, and most of the older GCCs are on older Debians with older Boosts! GCC 12 is also on Debian 12 though.
I made an example for building QuantLib with vcpkg here. Let me know if it doesn't work for you.
This issue was automatically marked as stale because it has been open 60 days with no activity. Remove stale label or comment, or this will be closed in two weeks.
Building 1.34 like this:
Fails with:
While it builds fine without QL_COMPILE_WARNING_AS_ERROR set. Although it does report this as a warning, of course.
I believe this is to do with this test precondition:
I have to confess i have no idea how to fix that, as i do not know Boost::Test preconditions or standard library functors!