summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);