Allocation failure fix and test

This commit is contained in:
Léa Saviot
2018-06-28 14:50:45 +02:00
parent c208da2f90
commit 46d56ade21
17 changed files with 151 additions and 28 deletions

View File

@@ -1,8 +1,15 @@
#include "layout_reference.h"
#include "layout_cursor.h"
#include "allocation_failed_layout_node.h"
#include "layout_node.h"
#include "char_layout_node.h"
template<>
TreeNode * LayoutRef::failedAllocationNode() {
static AllocationFailedLayoutRef FailureRef;
return FailureRef.node();
}
template <typename T>
LayoutCursor LayoutReference<T>::cursor() const {
return LayoutCursor(this->node());