|
Boost Users : |
Subject: Re: [Boost-users] [Random] Passing an arbitrary uniform random number generator to a function
From: Joseph Gauterin (joseph.gauterin_at_[hidden])
Date: 2010-04-28 04:45:25
You're not missing anything - a lot of boost/std/std::tr1 is designed
to be used with templates rather than runtime polymorphism - mixing
the two isn't trivial.
Fortunately, the type erasure method is quite easy to use once you
know about it - but it does require a bit of extra work (you don't
have to use boost::function for it either - that's just a quick
shortcut).
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