Skip to content
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

fix build with clang19 #895

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix build with clang19 #895

wants to merge 1 commit into from

Conversation

spoonincode
Copy link
Member

No description provided.

@@ -375,7 +375,7 @@ BOOST_DATA_TEST_CASE(non_prune_to_prune, bdata::xrange(2) * bdata::xrange(2), en

//upgrade to pruned...
t.conf = eosio::state_history::prune_config{ .prune_blocks = 4 };
t.template check_n_bounce([]() {});
t.check_n_bounce([]() {});
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For these, clang19 is more strict: these function calls need to be formatted as template foo<>(). But in all cases here we didn't need the template anyways.

size_t tellp() { return this->pubseekoff(0, std::ios::cur); }
bool skip(size_t p) { this->pubseekoff(p, std::ios::cur); return true; }
size_t tellp() { return buf.pubseekoff(0, std::ios::cur); }
bool skip(size_t p) { buf.pubseekoff(p, std::ios::cur); return true; }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wild how it was never detected before.

Copy link
Contributor

@greg7mdp greg7mdp Oct 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably because we never create a datastream with a class inheriting from std::streambuf.

Also, I believe that the way we use enable_if_t here is wrong, see the notes here. actually, on second thought, maybe it is fine.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I was a little worried the reason it was being flagged now was because something with the enable_if is goofed up and this was now being improperly selected.. but I couldn't find evidence of that actually occurring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants