vertex property setting
Hi all!
I'm new at using boost and my request certainly is obvious but I can't manage
to get the error...
I am trying to set std::vector's type vertex properties in a graph. But it
does not want te set a property to more than one edge.
The program is the following:
/****************************************code*****************************/
#include <vector>
#include <iostream>
#include <list>
#include <map>
//boost includes
#include
On Mar 9, 2006, at 8:08 AM, Camille Lemen wrote:
param.clear();
Your problem is here. You should not be calling "clear()" on param, because that will make it have zero elements. The next line of code, that tries to write to the 0th element of param, is actually incorrect. Remove the param.clear(); line and things should work as expected.
param[0] = 2; std::cerr<<"param[0] = "<
Doug
Le Jeudi 9 Mars 2006 17:08, Douglas Gregor a écrit :
On Mar 9, 2006, at 8:08 AM, Camille Lemen wrote:
param.clear();
Your problem is here. You should not be calling "clear()" on param, because that will make it have zero elements. The next line of code, that tries to write to the 0th element of param, is actually incorrect. Remove the param.clear(); line and things should work as expected.
param[0] = 2; std::cerr<<"param[0] = "<
Doug _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Thanks!!
participants (2)
-
Camille Lemen
-
Douglas Gregor