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 source;
|
||||||
NodeIterator target;
|
NodeIterator target;
|
||||||
EdgeDataT data;
|
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
|
bool operator<(const InputEdge &right) const
|
||||||
{
|
{
|
||||||
if (source != right.source)
|
if (source != right.source)
|
||||||
|
Loading…
Reference in New Issue
Block a user