Replace nodes with AllocationFailures inside the tree when needed

This commit is contained in:
Léa Saviot
2018-06-29 14:21:10 +02:00
parent cb77fbe2ff
commit 2684b2f09f
15 changed files with 139 additions and 83 deletions

View File

@@ -5,15 +5,15 @@
#include "char_layout_node.h"
template<>
TreeNode * LayoutRef::failedAllocationNode() {
TreeNode * LayoutRef::staticFailedAllocationStaticNode() {
static AllocationFailedLayoutRef FailureRef;
return FailureRef.node();
}
template <typename T>
LayoutCursor LayoutReference<T>::cursor() {
LayoutCursor LayoutReference<T>::cursor() const {
return LayoutCursor(this->castedNode());
}
template LayoutCursor LayoutReference<LayoutNode>::cursor();
template LayoutCursor LayoutReference<CharLayoutNode>::cursor();
template LayoutCursor LayoutReference<LayoutNode>::cursor() const;
template LayoutCursor LayoutReference<CharLayoutNode>::cursor() const;