Doesn't compile as STIR still seems to be using boost::shared_ptr
https://github.com/CCPPETMR/SIRF/pull/61
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
I guess this is a straightforward replacement of boost::shared_ptr
with std::shared_ptr
? This is fine for me but does imply we have to switch to STIR master now (as the version we used at 0.9 still used boost::shared_ptr
).
However, logically speaking, what pointers used by STIR and SIRF should be independent of each other. I wonder if the STIR objects shouldn't simply use stir::shared_ptr
(which will be compatible with any version). This is something that needs @evgueni-ovtchinnikov though.
yes, and yes I agree if there's a stir::shared_ptr
yes. stir::shared_ptr
will actually be an alias for either boost::shared_ptr
or std::shared_ptr
(via using
).
SIRF requires C++-11, so there is no reason to introduce sirf::shared_ptr
. SIRF needs to stick to std::shared_ptr
.
Are you ever returning STIR shared_ptrs directly in the MATLAB/Python interface? as long as they are used only internally in your C++ classes, there should be no problem to have those as different types of shared_ptr
as far as I can see.
—
Superseded by #62.
Closed #61.