kotekan / kotekan

High performance radio data processing pipeline
http://kotekan.rtfd.io
Other
25 stars 16 forks source link

datasetManager::add_dataset: use C++17 std::optional #550

Open nritsche opened 5 years ago

nritsche commented 5 years ago

dset_id_t datasetManager::add_dataset(state_id_t state, dset_id_t base_dset) is implemented so that it treats the state as a root, in case base_dset is 0. This can (even though unlikely) be an actual dataset ID. Move to std::optional typing when we use C++17.

nritsche commented 5 years ago

This issue affects only the branch dm-refactor / #549 now it's in develop