diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-13 12:36:49 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-13 12:36:49 +0000 |
commit | d429dd0aeec5a84427223d2390a683095d2743ce (patch) | |
tree | 8c6a5f432f7aad344a337feda8c3b3ab43972196 /lib/glContainer.h | |
parent | Adding missing copy/move operations to glContainer (diff) | |
download | ilt-d429dd0aeec5a84427223d2390a683095d2743ce.tar.bz2 ilt-d429dd0aeec5a84427223d2390a683095d2743ce.tar.xz ilt-d429dd0aeec5a84427223d2390a683095d2743ce.zip |
Default destructor for trivial types of glContainer
Diffstat (limited to 'lib/glContainer.h')
-rw-r--r-- | lib/glContainer.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/glContainer.h b/lib/glContainer.h index ecba30d..bfab57b 100644 --- a/lib/glContainer.h +++ b/lib/glContainer.h @@ -122,11 +122,14 @@ public: allocBuffer(1); } - ~glContainer() noexcept(is_trivial_dest) + ~glContainer() + requires(is_trivial_dest) + = default; + + ~glContainer() + requires(!is_trivial_dest) { - if constexpr (!is_trivial_dest) { - clear(); - } + clear(); } DEFAULT_MOVE_NO_COPY(glContainer); |