I would like to initialize boost::random::discrete_distribution with a double[] like this:
boost::random::discrete_distribution<>* distribution(double* _distr)
{
return new boost::random::discrete_distribution<>(_distr);
}
I know I can use vector or statically sized table but is there a way to overcome that without rewriting my _distr?