summaryrefslogtreecommitdiff
path: root/src/context/cdqueue.h
diff options
context:
space:
mode:
authorFrançois Bobot <francois@bobot.eu>2012-07-27 13:36:32 +0000
committerFrançois Bobot <francois@bobot.eu>2012-07-27 13:36:32 +0000
commit4bfa927dac67bbcadf219f70e61f1d123e33944b (patch)
treef295343430799748de8b9a823f1a3c641c096905 /src/context/cdqueue.h
parent988c97d92fa617c5dccaeb1ef33121bfa6459afc (diff)
Merge quantifiers2-trunk:
- new syntax for rewrite rules - better rewrite rules theory - remove the rewriting with rewrite rules during ppRewrite temporarily - theory can define their own candidate generator - define a general candidate generator (inefficient ask to every theory) - split inst_match between the pattern matching used for quantifiers (inst_match.*) and the one used for rewrite rules (rr_inst_match.*): - the pattern matching is less exhaustive for quantifiers, - the one for rewrite rules can use efficient-e-matching.
Diffstat (limited to 'src/context/cdqueue.h')
-rw-r--r--src/context/cdqueue.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/context/cdqueue.h b/src/context/cdqueue.h
index b43217cfe..abdcc0493 100644
--- a/src/context/cdqueue.h
+++ b/src/context/cdqueue.h
@@ -63,7 +63,7 @@ protected:
* We assume that the base class do the job inside their copy constructor.
*/
ContextObj* save(ContextMemoryManager* pCMM) {
- ContextObj* data = new(pCMM) CDQueue<T>(*this);
+ ContextObj* data = new(pCMM) CDQueue<T, CleanUp, Allocator>(*this);
// We save the d_size in d_lastsave and we should never destruct below this
// indices before the corresponding restore.
d_lastsave = ParentType::d_size;
@@ -83,7 +83,7 @@ protected:
* the list pointer and the allocated size are not changed.
*/
void restore(ContextObj* data) {
- CDQueue<T>* qdata = static_cast<CDQueue<T>*>(data);
+ CDQueue<T, CleanUp, Allocator>* qdata = static_cast<CDQueue<T, CleanUp, Allocator>*>(data);
d_iter = qdata->d_iter;
d_lastsave = qdata->d_lastsave;
ParentType::restore(data);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback