aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-09-16 21:59:17 -0400
committerDavid Robillard <d@drobilla.net>2022-09-16 22:31:06 -0400
commit5e6b40bca823d6acf3f9b89d50c7888a96e39d5e (patch)
tree8097f4c35bb75755b680c09c3928ffce99209ddd /include
parenta1572052fb6e04107f4beb07662aa20cacbc5533 (diff)
downloadchilbert-5e6b40bca823d6acf3f9b89d50c7888a96e39d5e.tar.gz
chilbert-5e6b40bca823d6acf3f9b89d50c7888a96e39d5e.tar.bz2
chilbert-5e6b40bca823d6acf3f9b89d50c7888a96e39d5e.zip
Remove unnecessary move
Diffstat (limited to 'include')
-rw-r--r--include/chilbert/chilbert.ipp3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/chilbert/chilbert.ipp b/include/chilbert/chilbert.ipp
index f333630..84626fc 100644
--- a/include/chilbert/chilbert.ipp
+++ b/include/chilbert/chilbert.ipp
@@ -484,9 +484,8 @@ compact_index_to_coords(P& p,
if (n <= SmallBitVec::bits_per_rack) {
// Intermediate variables will fit in fixed width
- SmallBitVec scratch(n);
detail::compact_index_to_coords<P, HC, SmallBitVec>(
- p, ms, n, hc, std::move(scratch), M, m);
+ p, ms, n, hc, SmallBitVec{n}, M, m);
} else {
// Otherwise, they must be DynamicBitVecs
DynamicBitVec scratch(n);