-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge for 1.85 #410
Merge for 1.85 #410
Conversation
Respect library-specific _NO_LIB macros. Fixes #339.
- (Implicitly) printing a big enough type results in: "warning: overflow in expression; result is 2147483347 with type 'int' [-Winteger-overflow]". - Fixed by promoting the calculation to 'std::streamsize'. Co-authored-by: Matt Borland <[email protected]>
@raffienficiaud Any idea how to fix the one new test case failure here: https://github.com/boostorg/test/actions/runs/8076642786/job/22065447368?pr=410#step:8:2024. The build starts failing once this commit is applied to boost::function: boostorg/function@af8e66d. There's only 4 uses of CC: @pdimov |
Hi @mborland . From what I quickly see, it comes from statements like this and this basically checks that the underlying I can give you more details tonight. |
The error is
which tries to output a I don't think this is supposed to happen. It probably worked by chance before by implicitly casting the |
@mborland replacing that faulty line by this seems to work
the diff:
I am actually not seeing any other error on |
But that's not the right fix. This BOOST_TEST should work (as it should for any type that has an The question is why it tries to print using |
Or maybe BOOST_TEST always requires the values to be printable? I looked at the documentation but can't find this stated one way or another. I tried
and it causes a static assertion
so maybe having |
you gave an answer to your question: the underlying type has to be printable. Note that here,
There are other ways (see link above) but this is usually a pain point and should be improved. |
Fix boost::function streaming error
No description provided.