From c3dab4299a7f70b2b69e461de9ab03957653fcce Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 11 Dec 2025 15:11:49 +0100 Subject: chore: new `option.hpp` API. Signed-off-by: Amlal El Mahrouss --- include/ocl/option.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include') 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 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 - option& expect_or_handle(const char_type* input) + option& expect_or_handle(const char* input) { if (ret_ == return_type::err) { -- cgit v1.2.3