ecell / ecell4_base

An integrated software environment for multi-algorithm, multi-timescale, multi-spatial-representation simulation of various cellular phenomena
https://ecell4.e-cell.org/
GNU General Public License v3.0
62 stars 23 forks source link

:recycle: replace boost::scoped_ptr by std::unique_ptr #455

Closed ToruNiina closed 4 years ago

ToruNiina commented 4 years ago

Since std::move is introduced after C++11, boost::scoped_ptr is not movable.

By replacing it by std::unique_ptr, some of the ecell4 classes, such as BDWorld, will also be movable. Additionally, by applying this change, World classes that contains ParticleSpace* will be able to be constructed from a unique_ptr to a ParticleSpace to change the ParticleSpace implementation at runtime.

kaizu commented 4 years ago

Great!