[Lemon-user] Create and initialize a vector of NodeMaps (or ArcMaps)
David Franz Koza
dakoz at dtu.dk
Tue Jan 24 11:16:20 CET 2017
Dear all,
I would like to create a vector of NodeMaps. The size of the vector is not a constant, hence I tried the following to initialize the vector:
GraphClass::GraphClass(unsigned int num_maps) :
vec_of_maps(num_maps, lemon::SmartDigraph::NodeMap<bool>(g))
{
}
with
class GraphClass {
public:
GraphClass(unsigned int num_maps);
lemon::SmartDigraph g;
std::vector<lemon::SmartDigraph::NodeMap<bool>> vec_of_maps;
};
However, I get the following MSVC error:
Microsoft Visual Studio 14.0\VC\include\xmemory0(737): error C2280: 'lemon::DigraphExtender<lemon::SmartDigraphBase>::NodeMap<bool>::NodeMap(const lemon::DigraphExtender<lemon::SmartDigraphBase>::NodeMap<bool> &)': attempting to reference a deleted function
Any suggestions on how I can initialize a vector of lemon::SmartDigraph::NodeMap<bool>(g) ?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lemon.cs.elte.hu/pipermail/lemon-user/attachments/20170124/65be7a1d/attachment.html>
More information about the Lemon-user
mailing list