summaryrefslogtreecommitdiffhomepage
path: root/include/CompilerKit/ErrorOr.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-23 09:39:34 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-23 09:39:34 +0100
commit2a16b53aaf4b38f5e63ce69c96df65b24e26b82b (patch)
tree60991dbc4a93364c3208435e8e3a0b8b2ef8ea2b /include/CompilerKit/ErrorOr.h
parent0d197225d9c90123df67a752479f890de5ebe413 (diff)
wip: cppfront: Implementing C++ part of the frontend.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/CompilerKit/ErrorOr.h')
-rw-r--r--include/CompilerKit/ErrorOr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/CompilerKit/ErrorOr.h b/include/CompilerKit/ErrorOr.h
index 385cec4..8bb1b96 100644
--- a/include/CompilerKit/ErrorOr.h
+++ b/include/CompilerKit/ErrorOr.h
@@ -30,6 +30,8 @@ class ErrorOr final {
public:
using RefType = StrongRef<T>;
+ using Reference = T&;
+ using Ptr = T*;
explicit ErrorOr(ErrorT err) : mId(err) {}
explicit ErrorOr(std::nullptr_t null) {}