aboutsummaryrefslogtreecommitdiffstats
path: root/include/chilbert/chilbert.ipp
diff options
context:
space:
mode:
Diffstat (limited to 'include/chilbert/chilbert.ipp')
-rw-r--r--include/chilbert/chilbert.ipp10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/chilbert/chilbert.ipp b/include/chilbert/chilbert.ipp
index 7a5b9b7..0b6587a 100644
--- a/include/chilbert/chilbert.ipp
+++ b/include/chilbert/chilbert.ipp
@@ -209,7 +209,7 @@ coords_to_index(const P& p,
I&& scratch,
size_t* const ds = nullptr)
{
- I e{std::move(scratch)};
+ I e{std::forward<I>(scratch)};
I l{e};
I t{e};
I w{e};
@@ -255,7 +255,7 @@ template <class P, class H, class I>
inline void
index_to_coords(P& p, const size_t m, const size_t n, const H& h, I&& scratch)
{
- I e{std::move(scratch)};
+ I e{std::forward<I>(scratch)};
I l{e};
I t{e};
I w{e};
@@ -327,12 +327,12 @@ coords_to_compact_index(const P& p,
if (mn > SmallBitVec::bits_per_rack) {
DynamicBitVec h(mn);
detail::coords_to_index<P, DynamicBitVec, I>(
- p, m, n, h, std::move(scratch), ds);
+ p, m, n, h, std::forward<I>(scratch), ds);
compact_index<DynamicBitVec, HC>(ms, ds, n, m, h, hc);
} else {
SmallBitVec h(mn);
detail::coords_to_index<P, SmallBitVec, I>(
- p, m, n, h, std::move(scratch), ds);
+ p, m, n, h, std::forward<I>(scratch), ds);
compact_index<SmallBitVec, HC>(ms, ds, n, m, h, hc);
}
@@ -349,7 +349,7 @@ compact_index_to_coords(P& p,
size_t M,
size_t m)
{
- I e{std::move(scratch)};
+ I e{std::forward<I>(scratch)};
I l{e};
I t{e};
I w{e};