make c'tor of DynamicGraph::InputEdge variadic to be more flexible against changing EdgeData types
This commit is contained in:
parent
8e3484b873
commit
67722cf788
@ -54,6 +54,10 @@ template <typename EdgeDataT> class DynamicGraph
|
||||
NodeIterator source;
|
||||
NodeIterator target;
|
||||
EdgeDataT data;
|
||||
|
||||
template<typename... Ts>
|
||||
InputEdge(NodeIterator source, NodeIterator target, Ts &&...data) : source(source), target(target), data(std::forward<Ts>(data)...) { }
|
||||
|
||||
bool operator<(const InputEdge &right) const
|
||||
{
|
||||
if (source != right.source)
|
||||
|
Loading…
Reference in New Issue
Block a user