diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-12-31 12:31:13 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-12-31 12:31:13 +0000 |
commit | 7c6ad616ae0d8c2bb83c9ad6473b5581a6bd7526 (patch) | |
tree | 4e05d57497b2c2bd8f339bb6aa966a38ccc4d13f /lib/special_members.hpp | |
parent | Remove unnecessary initialiser (diff) | |
download | ilt-7c6ad616ae0d8c2bb83c9ad6473b5581a6bd7526.tar.bz2 ilt-7c6ad616ae0d8c2bb83c9ad6473b5581a6bd7526.tar.xz ilt-7c6ad616ae0d8c2bb83c9ad6473b5581a6bd7526.zip |
Allow glBuffers and glVertexArrays to be moved
Diffstat (limited to 'lib/special_members.hpp')
-rw-r--r-- | lib/special_members.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 |