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

Fixes the missing of copy ctor for bitset #154

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

sighingnow
Copy link
Collaborator

A move ctor was added to Bitset since #149, since then, it was no longer trivial-copy-constructible.

When using it in contexts like

std::vector<grape::DenseVertexSet<typename FRAG_T::inner_vertices_t> > curr_inner_updated, next_inner_updated;
auto v_label_num = valid_vertexes.size();
    curr_inner_updated.resize(v_label_num);
    next_inner_updated.resize(v_label_num);

it fails to compile under GCC-11.

Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
@sighingnow sighingnow merged commit 53d212b into alibaba:master Sep 6, 2023
4 checks passed
@sighingnow sighingnow deleted the ht/fix-bitset branch September 6, 2023 10:48
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.

1 participant