diff --git a/src/TSLQueue.hpp b/src/TSLQueue.hpp index 76e29d0..0a5de69 100644 --- a/src/TSLQueue.hpp +++ b/src/TSLQueue.hpp @@ -72,6 +72,10 @@ class TSLQueue { TSLQIter(const TSLQIter &) = delete; TSLQIter& operator=(const TSLQIter &) = delete; + // Allow move. + TSLQIter(TSLQIter &&) = default; + TSLQIter& operator=(TSLQIter &&) = default; + std::unique_ptr current(); bool next(); bool prev();