Antares_Simulator icon indicating copy to clipboard operation
Antares_Simulator copied to clipboard

Iterators over values instead of (smart) pointers

Open sylvlecl opened this issue 1 year ago • 0 comments

Description

#1388 introduced new repositories which manage the lifetime of underlying objects through smart pointers. This should remain an implementation detail of those classes. Therefore, the getters and iterators of those classes should not expose smart pointers, or iterators over smart pointers, but references and iterators over values instead.

In order to implement iterators over values instead, we can use boost::indirect_iterator.

Note

There is likely other existing places in the code where a similar change would be relevant.

sylvlecl avatar Aug 04 '23 16:08 sylvlecl