Boost logo

Boost Users :

From: Johan Råde (rade_at_[hidden])
Date: 2006-08-21 12:30:47


The problem may be that int and ptrdiff_t are distinct types on your
platform.

Try the following:

   ptrdiff_t customRand(ptrdiff_t n) { return (rand() % n); }

--Johan Råde


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