Boost logo

Boost :

From: Andrew Myers (andrew.myers_at_[hidden])
Date: 2000-12-04 23:25:58


Hi,

I have downloaded boost_1_18_3 and am trying to build the
libs/graph/test/graph.cpp exe. I was actually using ggcl a few months ago and am
now converting over programs I had to BGL.

Anyway,

In boost/graph/graph_utility.hpp, the rand() function is commented out thus,

  inline std::size_t random_number(std::size_t N) {
#if 0
    std::size_t ret = rand() % N;
#else
    std::size_t ret = 0;
    (void)N; // suppress unused argument warning.
#endif
    return ret;
  }

Is there are reason for this? Currently random_vertex(Graph& g) does not work.

Regards

-- 
  Andrew Myers                       /-_|\                          I-SiTE 
  Software Engineer                 /     \               3D Laser Imaging
  Phone: (+61 8) 8338 9222          \_,-o_/          
  Fax  : (+61 8) 8338 9229               v           
  Email: Andrew.Myers_at_[hidden]     http://www.isite3d.com.au

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk