mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-30 12:10:03 +02:00
[shared] Create ExpiringPointer: in DEBUG, check that pointers to
memoized functions are not used when invalid
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#ifndef GRAPH_STORAGE_FUNCTION_PARAM_CONTROLLER_H
|
||||
#define GRAPH_STORAGE_FUNCTION_PARAM_CONTROLLER_H
|
||||
|
||||
#include "../../shared/expiring_pointer.h"
|
||||
#include "../../shared/storage_cartesian_function.h"
|
||||
#include "../../shared/storage_values_function_parameter_controller.h"
|
||||
|
||||
@@ -18,7 +19,7 @@ public:
|
||||
void willDisplayCellForIndex(HighlightCell * cell, int index) override;
|
||||
void viewWillAppear() override;
|
||||
private:
|
||||
Shared::StorageCartesianFunction * function();
|
||||
Shared::ExpiringPointer<Shared::StorageCartesianFunction> function();
|
||||
#if COPY_COLUMN
|
||||
constexpr static int k_totalNumberOfCell = 2;
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user