summaryrefslogtreecommitdiff
path: root/deimos/core/gsl.h
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2024-04-05 00:00:33 +0200
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2024-04-05 00:00:33 +0200
commitf46b019cb0a2f451234fdb4f20620b7e443da136 (patch)
tree29a3b0f1441cef9932e0770b155294be55d11e9e /deimos/core/gsl.h
parent8970c40ce9a9a4e5f582b48f69b77bd90d8e678e (diff)
Add gsl::owner
Diffstat (limited to 'deimos/core/gsl.h')
-rw-r--r--deimos/core/gsl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/deimos/core/gsl.h b/deimos/core/gsl.h
index 2000f6a..b54fc65 100644
--- a/deimos/core/gsl.h
+++ b/deimos/core/gsl.h
@@ -6,6 +6,8 @@ namespace gsl
using zstring = char*;
using czstring = const char*;
+template<typename T> using owner = T;
+
} // namespace gsl
#define Expects(EXPR) do { if (!(EXPR)) { __builtin_trap(); } } while (0)