aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.config/option.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/option.ccm
parent36427c0966faa7aecd586b397ed9b845f18172f5 (diff)
downloadnihil-2e2d1bd3b6c7776b77c33b94f30ead89367a71e6.tar.gz
nihil-2e2d1bd3b6c7776b77c33b94f30ead89367a71e6.tar.bz2
add nihil.std
Diffstat (limited to 'nihil.config/option.ccm')
-rw-r--r--nihil.config/option.ccm37
1 files changed, 15 insertions, 22 deletions
diff --git a/nihil.config/option.ccm b/nihil.config/option.ccm
index 4b95793..0758c1a 100644
--- a/nihil.config/option.ccm
+++ b/nihil.config/option.ccm
@@ -1,32 +1,22 @@
-/*
- * This source code is released into the public domain.
- */
-
-module;
-
-#include <expected>
-#include <iosfwd>
-#include <string>
-
+// This source code is released into the public domain.
export module nihil.config:option;
+import nihil.std;
import nihil.error;
import nihil.ucl;
namespace nihil::config {
-/*
- * Base class for options; this is what config_store interacts with.
- *
- * Base classes should override the four protected functions:
- *
- * get_string()
- * set_string()
- * get_ucl()
- * set_ucl()
- *
- * Overriding any other members is not permitted.
- */
+// Base class for options; this is what config_store interacts with.
+//
+// Base classes should override the four protected functions:
+//
+// get_string()
+// set_string()
+// get_ucl()
+// set_ucl()
+//
+// Overriding any other members is not permitted.
export struct option
{
@@ -70,6 +60,9 @@ export struct option
option(option const &) = delete;
auto operator=(option const &) -> option& = delete;
+ option(option &&) = delete;
+ auto operator=(option &&) -> option& = delete;
+
protected:
option(std::string_view name, std::string_view description);