Cleanup code that uses Workspace::clone(). #12949
Labels
Extra Attention
Testers and Gate keepers should pay extra attention as this affects core aspects.
Framework
Issues and pull requests related to components in the Framework
Maintenance
Unassigned issues to be addressed in the next maintenance period.
Milestone
The changes in #12687 partially left cumbersome code in relation to
Workspace::clone()
. In particular this concerns code where the result of aclone()
call is stored in aboost::shared_ptr
.clone()
returns astd::unique_ptr
. Boosts supports constructing aboost::shared_ptr
from astd::unique_ptr
starting with version 1.53. At least on Windows the current version is 1.52. Therefore, the current workaround is to initialize theboost::shared_ptr
with viaWorkspace::clone().release()
. Once we use a newer Boost version on all systems therelease()
call should be removed.The text was updated successfully, but these errors were encountered: