aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.config/store.ccm
diff options
context:
space:
mode:
authorLexi Winter <lexi@le-fay.org>2025-07-01 17:07:04 +0100
committerLexi Winter <lexi@le-fay.org>2025-07-01 17:07:04 +0100
commit2e2d1bd3b6c7776b77c33b94f30ead89367a71e6 (patch)
tree54d37ffadf8e677938d9b7a28e4e9b71be1e75c1 /nihil.config/store.ccm
parent36427c0966faa7aecd586b397ed9b845f18172f5 (diff)
downloadnihil-2e2d1bd3b6c7776b77c33b94f30ead89367a71e6.tar.gz
nihil-2e2d1bd3b6c7776b77c33b94f30ead89367a71e6.tar.bz2
add nihil.std
Diffstat (limited to 'nihil.config/store.ccm')
-rw-r--r--nihil.config/store.ccm27
1 files changed, 9 insertions, 18 deletions
diff --git a/nihil.config/store.ccm b/nihil.config/store.ccm
index 4d37ce0..0a92ef0 100644
--- a/nihil.config/store.ccm
+++ b/nihil.config/store.ccm
@@ -1,25 +1,16 @@
-/*
- * This source code is released into the public domain.
- */
-
-module;
-
-/*
- * The configuration store. There should only be one of these.
- */
-
-#include <coroutine>
-#include <expected>
-#include <string>
-#include <map>
-
+// This source code is released into the public domain.
export module nihil.config:store;
+// The configuration store. There should only be one of these.
+
+import nihil.std;
+import nihil.error;
import nihil.generator;
-import :option;
namespace nihil::config {
+export struct option;
+
struct store final {
/*
* Get the global config store.
@@ -57,8 +48,8 @@ struct store final {
// Not movable or copyable.
store(store const &) = delete;
store(store &&) = delete;
- store& operator=(store const &) = delete;
- store& operator=(store &&) = delete;
+ auto operator=(store const &) -> store & = delete;
+ auto operator=(store &&) -> store & = delete;
private:
store();