#964 closed request (fixed)

move constructor and assignment for DiscreteGeneral

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


The copy and assignment are non-trivial and move functionality would thus be beneficiial.

Change History (2)

comment:1 Changed 22 months ago by Peter

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

comment:2 Changed 22 months ago by Peter

Resolution: fixed
Status: acceptedclosed

In 4010:

Implement move constructo and move-assignment operator for
DiscreteGeneral? (closes #964). Using swap idiom also for
copy-assignment as it gives stronger exception safety, i.e., if
preproc throws, lhs is not modified (whereas before ::p_ was).

Note: See TracTickets for help on using tickets.