summaryrefslogtreecommitdiff
path: root/lib/glContainer.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-01-13 12:36:49 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-01-13 12:36:49 +0000
commitd429dd0aeec5a84427223d2390a683095d2743ce (patch)
tree8c6a5f432f7aad344a337feda8c3b3ab43972196 /lib/glContainer.h
parentAdding missing copy/move operations to glContainer (diff)
downloadilt-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.h11
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);