The index page of Boost Random Number Library ( http://www.boost.org/libs/random/index.html) contains a "quick start" example code fragment:

For a very quick start, here's an example:
  boost::mt19937 rng;                 // produces randomness out of thin air
                                      // see pseudo-random number generators
  boost::uniform_int<> six(1,6)       // distribution that maps to 1..6
                                      // see random number distributions
  boost::variate_generator<boost::mt19937, boost::uniform_int<> >
           die(rng, six);             // glues randomness with mapping
  int x = die();                      // simulate rolling a die

The compiler points to the most complicated line, and suggests there is an error before the '::' symbol. There are three '::' symbols on that line.

This is an ugly way to start using a library, hunting for a bug. Please fix the example.

Reply via email to