|
Boost Users : |
From: Jeremy Siek (jsiek_at_[hidden])
Date: 2003-08-05 10:30:49
Hi Jeremie,
You should try to avoid converting to integers, but if you have to, simply
(int)in_degree(...)
will do the trick. Of course, that is not fullproof, and potentially will
not work for an arbitrary graph class, but it should work for the BGL
graph classes. If you want fullproof, I don't have a good answer.
-Jeremy
On Tue, 5 Aug 2003, [iso-8859-1] Jérémie Leguay wrote:
njphot> Hi!
njphot>
njphot> I have a simple question: if I use the in_degree
njphot> function I have in return a degree_size_type.
njphot> How it is possible to convert it in integer?
njphot>
njphot> /Jérémie
----------------------------------------------------------------------
Jeremy Siek http://php.indiana.edu/~jsiek/
Ph.D. Student, Indiana Univ. B'ton email: jsiek_at_[hidden]
C++ Booster (http://www.boost.org) office phone: (812) 855-3608
----------------------------------------------------------------------
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net