Skip to content

Conversation

@khalidDaoud
Copy link

The serialize() method in index_adjacency (unipartite version) was incorrectly marked const, but it calls base::serialize(out_file) which is not a const method (defined in indexed_struct_of_arrays).

This caused compilation errors when trying to serialize graphs:
error: no matching member function for call to 'serialize'
note: candidate function not viable: 'this' argument has type
'const nw::graph::index_adjacency<...>', but method is not
marked const

The bipartite version at line 302 is already correct (no const). This fix makes the unipartite version consistent.

Fixes compilation when using serialize() on adjacency graphs.

The serialize() method in index_adjacency (unipartite version) was
incorrectly marked const, but it calls base::serialize(out_file)
which is not a const method (defined in indexed_struct_of_arrays).

This caused compilation errors when trying to serialize graphs:
  error: no matching member function for call to 'serialize'
  note: candidate function not viable: 'this' argument has type
        'const nw::graph::index_adjacency<...>', but method is not
        marked const

The bipartite version at line 302 is already correct (no const).
This fix makes the unipartite version consistent.

Fixes compilation when using serialize() on adjacency graphs.
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