mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-23 15:50:49 +01:00
Allocation failure fix and test
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user