Skip to content
Snippets Groups Projects
Commit 424fc625 authored by Martyn Gigg's avatar Martyn Gigg
Browse files

Accept OrientedLattice by unique_ptr

The overwhelming use case for this method is to
take ownership of a lattice object into Sample.
Using unique_ptr clarifies that this is happening
at the call site and forces a caller to make copy
if that is truly the desired behaviour. The old code
make a copy internally but this was not obvious
from the method call.
parent 65dd5716
No related branches found
No related tags found
No related merge requests found
Showing
with 160 additions and 176 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment