summaryrefslogtreecommitdiff
path: root/src/context/cdqueue.h
diff options
context:
space:
mode:
authorMathias Preiner <mathias.preiner@gmail.com>2019-10-30 15:27:10 -0700
committerGitHub <noreply@github.com>2019-10-30 15:27:10 -0700
commit43ab3f4cd1aa5549cb1aa3c20a2d589614bcb8fc (patch)
treecf7b5d7f73a4d4ddc34492334a7d0eb90b57b77b /src/context/cdqueue.h
parent8dda9531995953c3cec094339002f2ee7cadae08 (diff)
Unify CVC4_CHECK/CVC4_DCHECK/AlwaysAssert/Assert. (#3366)
Diffstat (limited to 'src/context/cdqueue.h')
-rw-r--r--src/context/cdqueue.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/context/cdqueue.h b/src/context/cdqueue.h
index 6ad0e9339..079d2265c 100644
--- a/src/context/cdqueue.h
+++ b/src/context/cdqueue.h
@@ -125,21 +125,21 @@ public:
* function.
*/
void pop(){
- Assert(!empty(), "Attempting to pop from an empty queue.");
+ Assert(!empty()) << "Attempting to pop from an empty queue.";
ParentType::makeCurrent();
d_iter = d_iter + 1;
if (empty() && d_lastsave != ParentType::d_size) {
// Some elements have been enqueued and dequeued in the same
// context and now the queue is empty we can destruct them.
ParentType::truncateList(d_lastsave);
- Assert(ParentType::d_size == d_lastsave);
+ Assert(ParentType::d_size == d_lastsave);
d_iter = d_lastsave;
}
}
/** Returns a reference to the next element on the queue. */
const T& front() const{
- Assert(!empty(), "No front in an empty queue.");
+ Assert(!empty()) << "No front in an empty queue.";
return ParentType::d_list[d_iter];
}
@@ -147,7 +147,7 @@ public:
* Returns the most recent item added to the queue.
*/
const T& back() const {
- Assert(!empty(), "CDQueue::back() called on empty list");
+ Assert(!empty()) << "CDQueue::back() called on empty list";
return ParentType::d_list[ParentType::d_size - 1];
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback