#965 closed request (fixed)

default constructor for DiscreteGeneral

Reported by: Peter Owned by: Peter
Priority: major Milestone: yat 0.19
Component: random Version: trunk
Keywords: Cc:

Description

My use case is in a class and I construct the histogram in the constructor of that class with something like

class MyClass
{
DiscreteGeneral rng_;
public
MyClass(istream& is)
{
  Histogram hist
  ... create hist ...
  rng_ = DiscreteGeneral(hist);
}
};

without a defeaul constructor I'm forced keep pointer of DiscreteGeneral? instead which seems a bit limited.

Change History (2)

comment:1 Changed 11 months ago by Peter

Owner: changed from Jari Häkkinen to Peter
Status: newaccepted

comment:2 Changed 11 months ago by Peter

Resolution: fixed
Status: acceptedclosed

In 4009:

closes #965; Default constructor for DiscreteGeneral?

Note: See TracTickets for help on using tickets.