replace unordered_set by vector to keep insertion order
The order is which elements and dependencies are specified is important because some may need to be computed before others (i.e. they are themselves dependent). Using a vector (rather than a set) is required because while the set is ordered, the order is not controlled by the insertion order, but by some other sorting rules.
Showing
+38 -16
Please register or sign in to comment