But once initialized, it DOES have reference semantics:string[int] x; x[0] = "zero"; auto y = x; x[1] = "one"; assert(x == y);
Ok, great! I always initialize distMap with firstNd in the DijkstraWalk.this so that avoids the problem then.
Thanks alot!
But once initialized, it DOES have reference semantics:string[int] x; x[0] = "zero"; auto y = x; x[1] = "one"; assert(x == y);
Ok, great! I always initialize distMap with firstNd in the DijkstraWalk.this so that avoids the problem then.
Thanks alot!