Skip to content

Commit

Permalink
Update src/mlpack/core/math/make_alias.hpp
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Curtin <ryan@ratml.org>
  • Loading branch information
shrit and rcurtin committed Apr 23, 2024
1 parent 7a363cb commit d164b28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mlpack/core/math/make_alias.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void MakeAlias(OutVecType& v,
// assignment operators in Armadillo will end up copying memory instead of
// making an alias.
typename InVecType::elem_type* newMem =
const_cast<typename InVecType::elem_type*>(oldVec.memptr()) + offset;
const_cast<typename InVecType::elem_type*>(oldVec.memptr()) + offset;
v.~OutVecType();
new (&v) OutVecType(newMem, numElems, false, strict);
}
Expand Down

0 comments on commit d164b28

Please sign in to comment.