-
Notifications
You must be signed in to change notification settings - Fork 446
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
[TESTING] Switch compilation from C++17 to C++20 #4874
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: fruffy <fruffy@nyu.edu>
5188d30
to
3e44ceb
Compare
4010ffb
to
c880182
Compare
Signed-off-by: Vladimir Still <git@vstill.eu>
c880182
to
9590ab6
Compare
Wow, very gross hack! :) |
Yes. And a bit obscure too as it requires non-standard I'll need to double-check some parts though... the problem is it also modifies type of the string inside, which is no longer |
Clever solution. Nevertheless, it might be easier to just compile with a version of boost that is not broken? |
It is not broken, it is just old. At the time of its release, the method might have been deprecated, but that is all... This issue seemed stuck to me... It all depends on what we want for Ubuntu 20.04.
|
It looks like boost doesn't really support backporting patches, otherwise we could tried to fix up older versions of boost.
I can push #4663 forward, the current issue is the massive amount of includes added by this loop. |
@@ -331,13 +331,13 @@ static bool checkEnumValueInitializer(const IR::Type_Bits *type, const IR::Expre | |||
std::string extraMsg; | |||
if (!type->isSigned && constant->value < low) { | |||
extraMsg = | |||
str(boost::format( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one only does string interpolation. Maybe get rid of boost::format
entirely here to reduce the footprint. Same below.
Based on #4347. This applies a workaround that makes boost < 1.74 compatible with GCC >= 10 in the C++20 mode.