Boost logo

Boost Users :

Subject: Re: [Boost-users] [Random] Passing an arbitrary uniform random number generator to a function
From: Joseph Wakeling (joseph.wakeling_at_[hidden])
Date: 2010-04-27 11:06:35


Joseph Gauterin wrote:
> Looks like you need some sort of type erasure (Steve's suggestion uses
> boost::function for that):

OK, I think I understand from your description -- thank you, and thanks
to Steve as well!

What I'm slightly perturbed about is that this seems a slightly
complicated way to have to write code that uses an unspecified random
number generator -- is there a better way to do the whole RNG thing that
I'm missing?

Thanks again and best wishes,

    -- Joe


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