aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/ConstBuffer.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/ConstBuffer.hxx')
-rw-r--r--src/util/ConstBuffer.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/ConstBuffer.hxx b/src/util/ConstBuffer.hxx
index db8e64df0..1ba4301c8 100644
--- a/src/util/ConstBuffer.hxx
+++ b/src/util/ConstBuffer.hxx
@@ -208,7 +208,9 @@ struct ConstBuffer {
* not actually modify the buffer). Buffer must not be empty.
*/
void pop_front() {
+#ifndef NDEBUG
assert(!IsEmpty());
+#endif
++data;
--size;
@@ -219,7 +221,9 @@ struct ConstBuffer {
* not actually modify the buffer). Buffer must not be empty.
*/
void pop_back() {
+#ifndef NDEBUG
assert(!IsEmpty());
+#endif
--size;
}