# HG changeset patch # User alpar # Date 1138613546 0 # Node ID 2e957d67d7b954c46420fc9233689d64b1fdc34d # Parent 12f289d6187f79bd84c6e89c9adc2a1e110ca106 Use [] instead of set(). diff -r 12f289d6187f -r 2e957d67d7b9 demo/hello_lemon.cc --- a/demo/hello_lemon.cc Mon Jan 30 09:31:15 2006 +0000 +++ b/demo/hello_lemon.cc Mon Jan 30 09:32:26 2006 +0000 @@ -56,13 +56,13 @@ LengthMap length(g); - length.set(s_v2, 10); - length.set(s_v3, 10); - length.set(v2_v4, 5); - length.set(v2_v5, 8); - length.set(v3_v5, 5); - length.set(v4_t, 8); - length.set(v5_t, 8); + length[s_v2]=10; + length[s_v3]=10; + length[v2_v4]=5; + length[v2_v5]=8; + length[v3_v5]=5; + length[v4_t]=8; + length[v5_t]=8; std::cout << "Hello World!" << std::endl; std::cout << std::endl;