From 5738ff4ec079363771944c46067f2407234421ea Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Fri, 12 Jan 2024 16:32:42 +0900 Subject: [PATCH] Allow move for TSLQIter Should fix builds of UDPConnection.cpp with "-std=c++11". --- src/TSLQueue.hpp | 4 ++++ 1 file changed, 4 insertions(+) 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();