summaryrefslogtreecommitdiffstats
path: root/sord/sordmm.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-03 12:53:57 +0200
committerDavid Robillard <d@drobilla.net>2020-08-03 12:53:57 +0200
commitee2c52dc8794d0aa060b812dd3a3f55a5467ccf4 (patch)
tree96a7736c10ee8ac1e55423340d5ebe03e9d6d38d /sord/sordmm.hpp
parent23ad62885bdff54d466a7ac4e3b40c29cc2c10b9 (diff)
downloadsord-ee2c52dc8794d0aa060b812dd3a3f55a5467ccf4.tar.gz
sord-ee2c52dc8794d0aa060b812dd3a3f55a5467ccf4.tar.bz2
sord-ee2c52dc8794d0aa060b812dd3a3f55a5467ccf4.zip
Fix deprecated-copy-dtor warnings
Diffstat (limited to 'sord/sordmm.hpp')
-rw-r--r--sord/sordmm.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/sord/sordmm.hpp b/sord/sordmm.hpp
index a9a8f91..c4236d5 100644
--- a/sord/sordmm.hpp
+++ b/sord/sordmm.hpp
@@ -423,7 +423,17 @@ Node::to_bool() const
struct Iter : public Wrapper<SordIter*> {
inline Iter(World& world, SordIter* c_obj)
: Wrapper<SordIter*>(c_obj), _world(world) {}
+
+ Iter(const Iter&) = delete;
+ Iter& operator=(const Iter&) = delete;
+
+ inline Iter(Iter&& iter)
+ : Wrapper<SordIter*>(iter)
+ , _world(iter._world)
+ {}
+
inline ~Iter() { sord_iter_free(_c_obj); }
+
inline bool end() const { return sord_iter_end(_c_obj); }
inline bool next() const { return sord_iter_next(_c_obj); }
inline Iter& operator++() {