We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b56f997 commit ace6c92Copy full SHA for ace6c92
src/consumer_queue.h
@@ -135,7 +135,7 @@ class consumer_queue {
135
inline static void copy_or_move(sample_p &dst, const sample_p &src) { dst = src; }
136
inline static void copy_or_move(sample_p &dst, sample_p &&src) { dst = std::move(src); }
137
// helper to either move or drop a value, depending on whether a dst argument is given
138
- inline static void move_or_drop(sample_p & /*unused*/) {}
+ inline static void move_or_drop(sample_p &src) { src.~sample_p(); }
139
inline static void move_or_drop(sample_p &src, sample_p &dst) { dst = std::move(src); }
140
// helper to add a delta to the given index and wrap correctly
141
FORCEINLINE std::size_t add_wrap(std::size_t x, std::size_t delta) const {
0 commit comments