From 7c6ad616ae0d8c2bb83c9ad6473b5581a6bd7526 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 31 Dec 2021 12:31:13 +0000 Subject: Allow glBuffers and glVertexArrays to be moved --- lib/special_members.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/special_members.hpp') diff --git a/lib/special_members.hpp b/lib/special_members.hpp index d1dca99..4b85884 100644 --- a/lib/special_members.hpp +++ b/lib/special_members.hpp @@ -25,4 +25,8 @@ DEFAULT_MOVE(TYPE); \ NO_COPY(TYPE) +#define CUSTOM_MOVE(TYPE) \ + TYPE(TYPE &&) noexcept; \ + TYPE & operator=(TYPE &&) noexcept + #endif -- cgit v1.2.3