boostorg / graph

Boost.org graph module
http://boost.org/libs/graph
325 stars 208 forks source link

get invalid pointer or invalid free() error when copying adjacency_matrix to a vector #319

Open jakubo87 opened 1 year ago

jakubo87 commented 1 year ago

I have been trying to preload adjacency matrices with bundled properties to a std::vector of adjacency matrices in order to benchmark some uni project algorithm and not by chance measure the time to set up the graph. In that instance i tried different approaches to copy a prototype g0:

jeremy-murphy commented 1 year ago

What exactly do you mean that you can't use std::fill because adjacency_matrix is not a value type?

jakubo87 commented 1 year ago

What exactly do you mean that you can't use std::fill because adjacency_matrix is not a value type?

I might be wrong about this one. Though i don't seem to be able to build begin- and end-iterator from the property map. Or would it work with std::ranges::fill()? I have source code I can send you, if you want.