diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-11 15:11:49 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-11 15:11:49 +0100 |
| commit | c3dab4299a7f70b2b69e461de9ab03957653fcce (patch) | |
| tree | 7b44df9f8c689cbd6594c7ba5b0a46a1bc0770eb /include/ocl | |
| parent | 881039cd402fc24c43659c9727f89cffce0469fe (diff) | |
chore: new `option.hpp` API.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/ocl')
| -rw-r--r-- | include/ocl/option.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/ocl/option.hpp b/include/ocl/option.hpp index a73ccb0..c1bc5cc 100644 --- a/include/ocl/option.hpp +++ b/include/ocl/option.hpp @@ -20,7 +20,6 @@ namespace ocl count = err - okay + 1, }; - template <typename char_type = char> class option final { public: @@ -35,7 +34,7 @@ namespace ocl option& operator=(const option&) = delete; option(const option&) = delete; - option& expect(const char_type* input) + option& expect(const char* input) { if (ret_ == return_type::err) { @@ -46,7 +45,7 @@ namespace ocl } template <typename ErrorHandler> - option& expect_or_handle(const char_type* input) + option& expect_or_handle(const char* input) { if (ret_ == return_type::err) { |
