Boost logo

Boost :

From: Jens Maurer (Jens.Maurer_at_[hidden])
Date: 2001-08-30 16:18:22


nbecker_at_[hidden] wrote:
> On the face of it, the message doesn't seem to make sense. Isn't the
> second candidate constructor (SigGen2.H:25) identical to the one which
> says "no matching function for call..."?

As Peter Dimov already pointed out, you need to pass the uniform_real<>
thing by const reference (you want a copy of it).

When doing so, the next error is that uniform_int is called with
arguments which require random numbers in the range 0..-1
(aperature is 1, but must be > 2, because you subtract 2 somewhere
deep in your code).

Jens Maurer


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